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

Add ValueError into except section in astype call #8

Open
TimurAshrafzyanov opened this issue Feb 20, 2025 · 0 comments
Open

Add ValueError into except section in astype call #8

TimurAshrafzyanov opened this issue Feb 20, 2025 · 0 comments

Comments

@TimurAshrafzyanov
Copy link

I tried to run simple example:

model = apc.Model()
model.data_from_df(**apc.Belgian_lung_cancer())

but got error:
ValueError: invalid literal for int() with base 10: '1955-1959'

Found, that astype function throws ValueError but only TypeError is excepted here. Need to add ValueError into except section

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

1 participant