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

Error in preprocess.py #5

Open
renatodeleone opened this issue Jun 29, 2021 · 2 comments
Open

Error in preprocess.py #5

renatodeleone opened this issue Jun 29, 2021 · 2 comments

Comments

@renatodeleone
Copy link

dxs = [dx_dict.get(code, '') for code in row['dx'].split(',')]

AttributeError: 'int' object has no attribute 'split'

Any help will be appreciate. Thanks

@onlyzdd
Copy link
Owner

onlyzdd commented Sep 24, 2021

@renatodeleone Sorry to a late reply. It seems pandas is treating the dx column as int. To solve this problem, you can change it to dxs = [dx_dict.get(code, '') for code in str(row['dx']).split(',')] instead or simply update your pandas to newer versions.

@renatodeleone
Copy link
Author

renatodeleone commented Sep 24, 2021 via email

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