Skip to content

ARROW-4269: [Python] Fix serialization in pandas 0.22 - #3410

Closed
pcmoritz wants to merge 4 commits into
apache:masterfrom
pcmoritz:fix-pandas-0.22
Closed

pcmoritz wants to merge 4 commits into
apache:masterfrom
pcmoritz:fix-pandas-0.22

Conversation

@pcmoritz

Copy link
Copy Markdown
Contributor

No description provided.

@pcmoritz

Copy link
Copy Markdown
Contributor Author

see also #3387

Comment thread python/pyarrow/serialization.py Outdated
custom_deserializer=_load_pickle_from_buffer)

if hasattr(pd.core.arrays, 'interval'):
if hasattr(pd.core, 'arrays') and hasattr(pd.core.arrays, 'interval'):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following may be better:

if hasattr(pd.core, 'arrays'):
    if hasattr(pd.core.arrays, 'interval'):
        ....
    if hasattr(pd.core.arrays, 'period'):
        ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I fixed it!

@kszucs

kszucs commented Jan 16, 2019

Copy link
Copy Markdown
Member

We're going to need this in the release. Thanks @pcmoritz!

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #3410 into master will decrease coverage by 21%.
The diff coverage is 57.14%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #3410       +/-   ##
===========================================
- Coverage   88.33%   67.33%   -21.01%     
===========================================
  Files         631      303      -328     
  Lines       79291    46454    -32837     
  Branches     1069        0     -1069     
===========================================
- Hits        70040    31278    -38762     
- Misses       9140    15176     +6036     
+ Partials      111        0      -111
Impacted Files Coverage Δ
python/pyarrow/serialization.py 84.55% <57.14%> (+0.12%) ⬆️
cpp/src/arrow/pretty_print.h 0% <0%> (-100%) ⬇️
cpp/src/parquet/murmur3.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/util/memory.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/io/hdfs-internal.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/util/sse-util.h 0% <0%> (-100%) ⬇️
cpp/src/parquet/hasher.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/util/int-util.cc 0.39% <0%> (-99.21%) ⬇️
cpp/src/arrow/ipc/json-simple.cc 0.41% <0%> (-98.76%) ⬇️
cpp/src/arrow/test-util.h 0% <0%> (-98.1%) ⬇️
... and 461 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 143558e...54f13bb. Read the comment docs.

@pcmoritz

Copy link
Copy Markdown
Contributor Author

Does anybody know what happened to the code coverage? The changes can't possibly be related to the PR.

@pcmoritz

Copy link
Copy Markdown
Contributor Author

the same seems to have happend to #3387, so it's probably a fluke

@robertnishihara

Copy link
Copy Markdown
Contributor

This looks good to me. I assume the change in coverage is due to the fact that it's a pure Python PR and so most tests didn't run.

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

Successfully merging this pull request may close these issues.

5 participants