-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: also use Float Nullable dtypes in read_parquet when use_nullable_dtypes=True #45700
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
Conversation
…_dtypes=True in pd.read_parquet pandas-dev#45694 Add float types in mapping dictionary
Thanks for the PR! Please add tests, whatsnew line, and link this PR to the original issue. |
Before Fix : float64 is returned instead of Float64 #45700
After Fix : Float64 is returned instead of float64 and bug is fixed
|
@Jaafarben2 - the tests need to be added to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, w/o tests we can't even tell if this works
Thanks for the PR! To be explicit for the required test, there is an existing test for this functionality at pandas/pandas/tests/io/test_parquet.py Lines 603 to 645 in 5c757e9
This tests the roundtrip of a dataframe with some columns that have a nullable dtype variant in pandas. I think it should be sufficient to add two extra columns to the test dataframe (float32 and float64) in that existing test. |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
fixes #45694
Add float types in the mapping dictionary