1
1
import pandas .core .config as cf
2
2
from pandas .core .config import (is_int , is_bool , is_text , is_float ,
3
- is_instance_factory ,is_one_of_factory )
3
+ is_instance_factory ,is_one_of_factory , get_default_val )
4
4
from pandas .core .format import detect_console_encoding
5
5
6
6
"""
@@ -209,7 +209,7 @@ def mpl_style_cb(key):
209
209
cf .register_option ('column_space' , 12 , validator = is_int )
210
210
cf .register_option ('max_info_rows' , 1690785 , pc_max_info_rows_doc ,
211
211
validator = is_instance_factory ((int , type (None ))))
212
- cf .register_option ('max_rows' , 100 , pc_max_rows_doc , validator = is_int )
212
+ cf .register_option ('max_rows' , 60 , pc_max_rows_doc , validator = is_int )
213
213
cf .register_option ('max_colwidth' , 50 , max_colwidth_doc , validator = is_int )
214
214
cf .register_option ('max_columns' , 20 , pc_max_cols_doc , validator = is_int )
215
215
cf .register_option ('max_info_columns' , 100 , pc_max_info_cols_doc ,
@@ -229,14 +229,15 @@ def mpl_style_cb(key):
229
229
cf .register_option ('encoding' , detect_console_encoding (), pc_encoding_doc ,
230
230
validator = is_text )
231
231
cf .register_option ('expand_frame_repr' , True , pc_expand_repr_doc )
232
- cf .register_option ('line_width' , 80 , pc_line_width_doc )
233
232
cf .register_option ('chop_threshold' , None , pc_chop_threshold_doc )
234
233
cf .register_option ('max_seq_items' , None , pc_max_seq_items )
235
234
cf .register_option ('mpl_style' , None , pc_mpl_style_doc ,
236
235
validator = is_one_of_factory ([None , False , 'default' ]),
237
236
cb = mpl_style_cb )
238
- cf .register_option ('height' , 100 , pc_height_doc , validator = is_int )
237
+ cf .register_option ('height' , 60 , pc_height_doc , validator = is_int )
239
238
cf .register_option ('width' ,80 , pc_width_doc , validator = is_int )
239
+ # redirected to width, make defval identical
240
+ cf .register_option ('line_width' , get_default_val ('display.width' ), pc_line_width_doc )
240
241
cf .deprecate_option ('display.line_width' ,
241
242
msg = pc_line_width_deprecation_warning ,
242
243
rkey = 'display.width' )
0 commit comments