-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BF: define expected Series of correct for arch (eg i386) int #15044
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -288,7 +288,10 @@ def test_qcut_duplicates_bin(self): | |
|
||
def test_single_bin(self): | ||
# issue 14652 | ||
expected = Series([0, 0]) | ||
# Explicit dtype since Series produces int64 for ints, while cut | ||
# (due to numpy.searchsorted) would use int32 on i386, so let's assure | ||
# correct default to the architecture int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't test on 32-bit, but if this works that is ok specify There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. though this works fine on windows now (e.g. 64-bit points on 32-bit systems). and are you on master? this looks like an older line number. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now with 'intp' There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually I think this is a bug, cut on ints should always be 64-bit regardless of arch. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/pandas-dev/pandas/blob/master/pandas/tools/tile.py#L218 needs an |
||
expected = Series([0, 0], dtype='intp') | ||
|
||
s = Series([9., 9.]) | ||
result = cut(s, 1, labels=False) | ||
|
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.
@jreback - I have added one more "skip" which was failing on i386 -- described "incode". Does it make sense? ;)
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 this is fine