Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
dtype fixup
  • Loading branch information
rhshadrach committed Dec 6, 2022
commit 181b047b34869bfa1a5e36e3432aa1b54d9e43b6
4 changes: 2 additions & 2 deletions pandas/tests/groupby/test_nunique.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_empty_categorical(observed):
gb = ser.groupby(ser, observed=observed)
result = gb.nunique()
if observed:
expected = Series([], index=cat[:0], dtype=int)
expected = Series([], index=cat[:0], dtype="int64")
else:
expected = Series([0], index=cat)
expected = Series([0], index=cat, dtype="int64")
tm.assert_series_equal(result, expected)