Skip to content

Commit 235d900

Browse files
authored
TST: Suppress Series constructor warning (#48804)
1 parent 43a54b5 commit 235d900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/groupby/test_size.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_size_axis_1(df, axis_1, by, sort, dropna):
3333
counts = {key: sum(value == key for value in by) for key in dict.fromkeys(by)}
3434
if dropna:
3535
counts = {key: value for key, value in counts.items() if key is not None}
36-
expected = Series(counts)
36+
expected = Series(counts, dtype="int64")
3737
if sort:
3838
expected = expected.sort_index()
3939
grouped = df.groupby(by=by, axis=axis_1, sort=sort, dropna=dropna)

0 commit comments

Comments
 (0)