Skip to content

Commit 42b2209

Browse files
author
Daniel Saxton
committed
Set index
1 parent 4a9ea0b commit 42b2209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/test_apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_nunique_empty(self):
134134
assert_series_equal(result, expected)
135135

136136
result = df.T.nunique()
137-
expected = Series([])
137+
expected = Series([], index=pd.Index([]))
138138
assert_series_equal(result, expected)
139139

140140
def test_apply_deprecate_reduce(self):

0 commit comments

Comments
 (0)