14
14
is_bool , is_callable , is_instance_factory , is_int , is_one_of_factory ,
15
15
is_text )
16
16
17
- from pandas .io .formats .console import detect_console_encoding
18
17
from pandas .io .formats .terminal import is_terminal
19
18
20
19
# compute
@@ -110,16 +109,6 @@ def use_numexpr_cb(key):
110
109
pandas objects (if it is available).
111
110
"""
112
111
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
-
123
112
pc_pprint_nest_depth = """
124
113
: int
125
114
Controls the number of nested levels to process when pretty-printing
@@ -131,13 +120,6 @@ def use_numexpr_cb(key):
131
120
elements in outer levels within groups)
132
121
"""
133
122
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
-
141
123
float_format_doc = """
142
124
: callable
143
125
The callable should accept a floating point number and return
@@ -331,16 +313,10 @@ def table_schema_cb(key):
331
313
validator = is_text )
332
314
cf .register_option ('notebook_repr_html' , True , pc_nb_repr_h_doc ,
333
315
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 )
338
316
cf .register_option ('pprint_nest_depth' , 3 , pc_pprint_nest_depth ,
339
317
validator = is_int )
340
318
cf .register_option ('multi_sparse' , True , pc_multi_sparse_doc ,
341
319
validator = is_bool )
342
- cf .register_option ('encoding' , detect_console_encoding (), pc_encoding_doc ,
343
- validator = is_text )
344
320
cf .register_option ('expand_frame_repr' , True , pc_expand_repr_doc )
345
321
cf .register_option ('show_dimensions' , 'truncate' , pc_show_dimensions_doc ,
346
322
validator = is_one_of_factory ([True , False , 'truncate' ]))
0 commit comments