Skip to content

BUG: dropna dtype comp issue related (GH5815) #5820

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
merged 1 commit into from
Jan 2, 2014

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Jan 2, 2014

fixes dtype issue on 32-bit, related #5815

jreback added a commit that referenced this pull request Jan 2, 2014
BUG: dropna dtype comp issue related (GH5815)
@jreback jreback merged commit 97860a1 into pandas-dev:master Jan 2, 2014
@@ -3954,7 +3954,7 @@ def count(self, axis=0, level=None, numeric_only=False):
else:
result = notnull(frame).sum(axis=axis)

return result
return result.astype('int64')
Copy link
Contributor

Choose a reason for hiding this comment

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

just for my clarity - why is it important that this return in64 rather than int32 or whatever local build desires? Is that our common practice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should always be int64 as it returns a series
I think the sum of the boolean (when u isnull it returns boolean) when summed goes to int32 on 32 platforms
not really well defined what it should do
but that is generally a user decision

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.

2 participants