Skip to content

Commit ce2affa

Browse files
committed
Adjust test
1 parent f05c79b commit ce2affa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/test_reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ def test_df_empty_min_count_1(self, opname, dtype, exp_dtype):
18531853
df = DataFrame({0: [], 1: []}, dtype=dtype)
18541854
result = getattr(df, opname)(min_count=1)
18551855

1856-
expected = Series([np.nan, np.nan], dtype=exp_dtype)
1856+
expected = Series([np.nan, np.nan], dtype=exp_dtype, index=Index([0, 1]))
18571857
tm.assert_series_equal(result, expected)
18581858

18591859
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)