Skip to content

Commit

Permalink
TST: Suppress Series constructor warning (pandas-dev#48804)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke authored Sep 27, 2022
1 parent 43a54b5 commit 235d900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/groupby/test_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_size_axis_1(df, axis_1, by, sort, dropna):
counts = {key: sum(value == key for value in by) for key in dict.fromkeys(by)}
if dropna:
counts = {key: value for key, value in counts.items() if key is not None}
expected = Series(counts)
expected = Series(counts, dtype="int64")
if sort:
expected = expected.sort_index()
grouped = df.groupby(by=by, axis=axis_1, sort=sort, dropna=dropna)
Expand Down

0 comments on commit 235d900

Please sign in to comment.