@@ -542,25 +542,25 @@ def test_auto_detect(self):
542
542
index = range (10 )
543
543
df = DataFrame (index = index , columns = cols )
544
544
with option_context ("mode.sim_interactive" , True ):
545
- with option_context ("max_rows" , None ):
545
+ with option_context ("display. max_rows" , None ):
546
546
with option_context ("max_columns" , None ):
547
547
# Wrap around with None
548
548
assert has_expanded_repr (df )
549
- with option_context ("max_rows" , 0 ):
549
+ with option_context ("display. max_rows" , 0 ):
550
550
with option_context ("max_columns" , 0 ):
551
551
# Truncate with auto detection.
552
552
assert has_horizontally_truncated_repr (df )
553
553
554
554
index = range (int (term_height * fac ))
555
555
df = DataFrame (index = index , columns = cols )
556
- with option_context ("max_rows" , 0 ):
556
+ with option_context ("display. max_rows" , 0 ):
557
557
with option_context ("max_columns" , None ):
558
558
# Wrap around with None
559
559
assert has_expanded_repr (df )
560
560
# Truncate vertically
561
561
assert has_vertically_truncated_repr (df )
562
562
563
- with option_context ("max_rows" , None ):
563
+ with option_context ("display. max_rows" , None ):
564
564
with option_context ("max_columns" , 0 ):
565
565
assert has_horizontally_truncated_repr (df )
566
566
0 commit comments