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

Request python package lifelines for Econ 148 #6872

Open
pancakereport opened this issue Mar 10, 2025 · 2 comments
Open

Request python package lifelines for Econ 148 #6872

pancakereport opened this issue Mar 10, 2025 · 2 comments
Assignees
Labels
package-request Package addition request for a hub

Comments

@pancakereport
Copy link

Package Name

lifelines

Package Version

0.27.8

Hub URL

datahub.berkeley.edu

Reproducible test case

import lifelines
assert(lifelines.__version__ == '0.27.8')

from lifelines import KaplanMeierFitter
from lifelines.datasets import load_rossi
from lifelines import CoxPHFitter
from lifelines.plotting import plot_lifetimes

Course Name

https://classes.berkeley.edu/content/2025-spring-econ-148-001-lec-001

Semester Details

Sp25

Installation Deadline

March 14, but by the morning of the 18th at the latest

@pancakereport pancakereport added the package-request Package addition request for a hub label Mar 10, 2025
@balajialg
Copy link
Contributor

balajialg commented Mar 11, 2025

@pancakereport FYI, Changes are merged to https://staging.datahub.berkeley.edu/ and is live. You can restart your server and run the sample code you pasted (it worked for me)

@balajialg
Copy link
Contributor

balajialg commented Mar 12, 2025

@pancakereport Upon testing, I am finding that the lifelines version 0.27.8 is not compatible with the scipy version 1.4.1 in the hub. If I upgrade lifelines package to the latest version 0.30.0 then the import lifelines statement works fine or else I am getting the below message.

ImportError: cannot import name 'trapz' from 'scipy.integrate' ([/srv/conda/lib/python3.11/site-packages/scipy/integrate/__init__.py](https://datahub.berkeley.edu/srv/conda/lib/python3.11/site-packages/scipy/integrate/__init__.py))

Let me know if you are okay with the version upgrade?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package-request Package addition request for a hub
Projects
None yet
Development

No branches or pull requests

4 participants