Skip to content

Commit 97860a1

Browse files
committed
Merge pull request #5820 from jreback/perf_dropna_fix
BUG: dropna dtype comp issue related (GH5815)
2 parents f7aeaeb + 4d6d6b9 commit 97860a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,7 @@ def count(self, axis=0, level=None, numeric_only=False):
39543954
else:
39553955
result = notnull(frame).sum(axis=axis)
39563956

3957-
return result
3957+
return result.astype('int64')
39583958

39593959
def _count_level(self, level, axis=0, numeric_only=False):
39603960
if numeric_only:

0 commit comments

Comments
 (0)