Skip to content

Commit 54f02df

Browse files
committed
COMPAT: value_counts always return int64 dtype, xref pandas-dev#10876
1 parent 42ca8cd commit 54f02df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ def value_counts(self, dropna=True):
10461046
ix = Categorical(ix, categories=cat,
10471047
ordered=obj.ordered, fastpath=True)
10481048

1049-
return Series(count, index=CategoricalIndex(ix))
1049+
return Series(count, index=CategoricalIndex(ix), dtype='int64')
10501050

10511051
def get_values(self):
10521052
""" Return the values.

0 commit comments

Comments
 (0)