-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ARROW-1585/ARROW-1586: [PYTHON] serialize_pandas roundtrip loses columns name #1161
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
|
Can you rebase this on upstream? |
|
Yep, on it. |
wesm
left a comment
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.
How hard would it be to handle ARROW-1585 (integer columns) in this?
python/pyarrow/pandas_compat.py
Outdated
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.
Does this dtype need to be stored in the same way that we're storing normal pandas column dtypes (with logical + physical)? So maybe this will be a dict
|
I think I can handle ARROW-1585 in this PR. |
|
Odd failure. the manylinux1 build is using pandas 0.20.1 in case it's hitting a pandas bug |
wesm
left a comment
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.
+1, modulo minor comment
python/pyarrow/pandas_compat.py
Outdated
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.
does this do the right thing for extension dtypes (e.g. categorical)?
|
@wesm This now handles categorical and datetimetz dtypes in column indexes. |
|
Sweet thanks!!! |
|
This is failing on py2 =| |
|
@wesm This is now passing on Travis. Waiting for appveyor to start: https://ci.appveyor.com/project/cpcloud/arrow/build/1.0.329 |
|
Sweet, will keep an eye on the build |
|
Thanks! |
This PR also adds support for MultiIndex columns.