1414 is_bool , is_callable , is_instance_factory , is_int , is_one_of_factory ,
1515 is_text )
1616
17- from pandas .io .formats .console import detect_console_encoding
1817from pandas .io .formats .terminal import is_terminal
1918
2019# compute
@@ -110,16 +109,6 @@ def use_numexpr_cb(key):
110109 pandas objects (if it is available).
111110"""
112111
113- pc_date_dayfirst_doc = """
114- : boolean
115- When True, prints and parses dates with the day first, eg 20/01/2005
116- """
117-
118- pc_date_yearfirst_doc = """
119- : boolean
120- When True, prints and parses dates with the year first, eg 2005/01/20
121- """
122-
123112pc_pprint_nest_depth = """
124113: int
125114 Controls the number of nested levels to process when pretty-printing
@@ -131,13 +120,6 @@ def use_numexpr_cb(key):
131120 elements in outer levels within groups)
132121"""
133122
134- pc_encoding_doc = """
135- : str/unicode
136- Defaults to the detected encoding of the console.
137- Specifies the encoding to be used for strings returned by to_string,
138- these are generally strings meant to be displayed on the console.
139- """
140-
141123float_format_doc = """
142124: callable
143125 The callable should accept a floating point number and return
@@ -331,16 +313,10 @@ def table_schema_cb(key):
331313 validator = is_text )
332314 cf .register_option ('notebook_repr_html' , True , pc_nb_repr_h_doc ,
333315 validator = is_bool )
334- cf .register_option ('date_dayfirst' , False , pc_date_dayfirst_doc ,
335- validator = is_bool )
336- cf .register_option ('date_yearfirst' , False , pc_date_yearfirst_doc ,
337- validator = is_bool )
338316 cf .register_option ('pprint_nest_depth' , 3 , pc_pprint_nest_depth ,
339317 validator = is_int )
340318 cf .register_option ('multi_sparse' , True , pc_multi_sparse_doc ,
341319 validator = is_bool )
342- cf .register_option ('encoding' , detect_console_encoding (), pc_encoding_doc ,
343- validator = is_text )
344320 cf .register_option ('expand_frame_repr' , True , pc_expand_repr_doc )
345321 cf .register_option ('show_dimensions' , 'truncate' , pc_show_dimensions_doc ,
346322 validator = is_one_of_factory ([True , False , 'truncate' ]))
0 commit comments