Skip to content

Commit d194c99

Browse files
author
Evan Wright
committed
Fix missing index name in test
1 parent 238e30e commit d194c99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/tests/test_categorical.py

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,7 @@ def f(x):
18461846
c = pd.cut(df.a, [0, 1, 2, 3, 4])
18471847
result = df.groupby(c).apply(len)
18481848
expected = pd.Series([1, 0, 0, 0], index=c.values.categories)
1849+
expected.index.name = 'a'
18491850
tm.assert_series_equal(result, expected)
18501851

18511852
def test_pivot_table(self):

0 commit comments

Comments
 (0)