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

[Dependency Regression/Keep Track] Wait for Pandas to potentially handle IntegerDType string conversion #204

Open
bastienboutonnet opened this issue Sep 4, 2020 · 0 comments
Labels
bug 💩 Something isn't working dependencies Pull requests that update a dependency file ⚗️ research/follow up triaged: no

Comments

@bastienboutonnet
Copy link
Owner

Describe the bug
Pandas has nice and interesting new data types. The hope was that we'd be able to convert strings to ints while also having those ints cohabit with null data types.

We have a bit of a circular problem. Ints and Nulls can live together if int is IntegerDType but this datatype does not like to convert strings. The current work around is to do

df[col].astype('float').astype(pd.Int16Dtype())

as discussed in this issue: pandas-dev/pandas#25472

Let's keep on following the issue and for now I'll disable casting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 💩 Something isn't working dependencies Pull requests that update a dependency file ⚗️ research/follow up triaged: no
Projects
None yet
Development

No branches or pull requests

1 participant