-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: fix CategoricalBlock pickling #8519
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
Merged
jreback
merged 1 commit into
pandas-dev:master
from
immerrr:fix-categoricalblock-pickling
Oct 10, 2014
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+14.8 KB
pandas/io/tests/data/legacy_pickle/0.15.0/0.15.0_x86_64_linux_2.7.8.pickle
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
ccopy_reg | ||
_reconstructor | ||
p0 | ||
(cpandas.core.categorical | ||
Categorical | ||
p1 | ||
c__builtin__ | ||
object | ||
p2 | ||
Ntp3 | ||
Rp4 | ||
(dp5 | ||
S'_levels' | ||
p6 | ||
cnumpy.core.multiarray | ||
_reconstruct | ||
p7 | ||
(cpandas.core.index | ||
Index | ||
p8 | ||
(I0 | ||
tp9 | ||
S'b' | ||
p10 | ||
tp11 | ||
Rp12 | ||
((I1 | ||
(I4 | ||
tp13 | ||
cnumpy | ||
dtype | ||
p14 | ||
(S'O8' | ||
p15 | ||
I0 | ||
I1 | ||
tp16 | ||
Rp17 | ||
(I3 | ||
S'|' | ||
p18 | ||
NNNI-1 | ||
I-1 | ||
I63 | ||
tp19 | ||
bI00 | ||
(lp20 | ||
S'a' | ||
p21 | ||
ag10 | ||
aS'c' | ||
p22 | ||
aS'd' | ||
p23 | ||
atp24 | ||
(Ntp25 | ||
tp26 | ||
bsS'labels' | ||
p27 | ||
g7 | ||
(cnumpy | ||
ndarray | ||
p28 | ||
(I0 | ||
tp29 | ||
g10 | ||
tp30 | ||
Rp31 | ||
(I1 | ||
(I3 | ||
tp32 | ||
g14 | ||
(S'i8' | ||
p33 | ||
I0 | ||
I1 | ||
tp34 | ||
Rp35 | ||
(I3 | ||
S'<' | ||
p36 | ||
NNNI-1 | ||
I-1 | ||
I0 | ||
tp37 | ||
bI00 | ||
S'\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00' | ||
p38 | ||
tp39 | ||
bsS'name' | ||
p40 | ||
S'foobar' | ||
p41 | ||
sb. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
ahh, this is defined in
tests/test_categorical.py
, pls remove from there and change the usages to use this one (or I can do after), lmkThere 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.
I've moved it from there to here.
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.
ok, except the tests in categorical use
self.assert_categorical_equal
(easiest to maybe define this inutils/testing/TestCase
to call this is ok tooThere 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.
which is what this patch does, no? :)
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.
duh! wasn't really looking at it! (side issue - we have BOTH module level and TestCase level functions for some of the comparators...I think their is an issue out there somewhere)
e.g. you can do
tm.assert_series_equal
but notself.assert_series_equal
...but ok with the cat test changes