@@ -33,7 +33,7 @@ def test_sparse_max_row(self):
33
33
# GH 10560
34
34
result = repr (s )
35
35
exp = ("0 1.0\n ... \n 4 NaN\n "
36
- "dtype: float64\n BlockIndex\n "
36
+ "Length: 5, dtype: float64\n BlockIndex\n "
37
37
"Block locations: array([0, 3]{0})\n "
38
38
"Block lengths: array([1, 1]{0})" .format (dfm ))
39
39
self .assertEqual (result , exp )
@@ -52,7 +52,8 @@ def test_sparse_mi_max_row(self):
52
52
"Block lengths: array([1, 1]{0})" .format (dfm ))
53
53
self .assertEqual (result , exp )
54
54
55
- with option_context ("display.max_rows" , 3 ):
55
+ with option_context ("display.max_rows" , 3 ,
56
+ "display.show_dimensions" , False ):
56
57
# GH 13144
57
58
result = repr (s )
58
59
exp = ("A 0 1.0\n ... \n C 2 NaN\n "
@@ -77,7 +78,7 @@ def test_sparse_bool(self):
77
78
with option_context ("display.max_rows" , 3 ):
78
79
result = repr (s )
79
80
exp = ("0 True\n ... \n 5 False\n "
80
- "dtype: bool\n BlockIndex\n "
81
+ "Length: 6, dtype: bool\n BlockIndex\n "
81
82
"Block locations: array([0, 3]{0})\n "
82
83
"Block lengths: array([1, 1]{0})" .format (dtype ))
83
84
self .assertEqual (result , exp )
@@ -94,7 +95,8 @@ def test_sparse_int(self):
94
95
"Block lengths: array([1, 1]{0})" .format (dtype ))
95
96
self .assertEqual (result , exp )
96
97
97
- with option_context ("display.max_rows" , 3 ):
98
+ with option_context ("display.max_rows" , 3 ,
99
+ "display.show_dimensions" , False ):
98
100
result = repr (s )
99
101
exp = ("0 0\n ..\n 5 0\n "
100
102
"dtype: int64\n BlockIndex\n "
0 commit comments