Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in function cox_time.py #157

Open
jensrobben opened this issue Apr 14, 2023 · 1 comment
Open

Issue in function cox_time.py #157

jensrobben opened this issue Apr 14, 2023 · 1 comment

Comments

@jensrobben
Copy link

Since the release of pandas 2.0.0, the function iteritems is depreciated. (see https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html).
Because of this, the function cox_time.py doesn't work anymore, can this be updated?
I cannot give a reproducible example because I worked with the package 'survivalmodels' in R that loads in the cox_time.py function from Python.

@chengzhishi
Copy link

chengzhishi commented Sep 7, 2023

I tried two ways and they both seem to be working.

  1. downgrade pandas to 1.8
  2. Change the data.py by switching iteritems->items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants