@@ -73,7 +73,7 @@ def __init__(self, series, buf=None, header=True, length=True,
73
73
self .header = header
74
74
75
75
if float_format is None :
76
- float_format = get_option ("print_config .float_format" )
76
+ float_format = get_option ("print .float_format" )
77
77
self .float_format = float_format
78
78
79
79
def _get_footer (self ):
@@ -148,7 +148,7 @@ def _encode_diff_func():
148
148
if py3compat .PY3 : # pragma: no cover
149
149
_encode_diff = lambda x : 0
150
150
else :
151
- encoding = get_option ("print_config .encoding" )
151
+ encoding = get_option ("print .encoding" )
152
152
def _encode_diff (x ):
153
153
return len (x ) - len (x .decode (encoding ))
154
154
@@ -159,7 +159,7 @@ def _strlen_func():
159
159
if py3compat .PY3 : # pragma: no cover
160
160
_strlen = len
161
161
else :
162
- encoding = get_option ("print_config .encoding" )
162
+ encoding = get_option ("print .encoding" )
163
163
def _strlen (x ):
164
164
try :
165
165
return len (x .decode (encoding ))
@@ -191,7 +191,7 @@ def __init__(self, frame, buf=None, columns=None, col_space=None,
191
191
self .show_index_names = index_names
192
192
193
193
if sparsify is None :
194
- sparsify = get_option ("print_config .multi_sparse" )
194
+ sparsify = get_option ("print .multi_sparse" )
195
195
196
196
self .sparsify = sparsify
197
197
@@ -203,7 +203,7 @@ def __init__(self, frame, buf=None, columns=None, col_space=None,
203
203
self .index = index
204
204
205
205
if justify is None :
206
- self .justify = get_option ("print_config .colheader_justify" )
206
+ self .justify = get_option ("print .colheader_justify" )
207
207
else :
208
208
self .justify = justify
209
209
@@ -930,13 +930,13 @@ def format_array(values, formatter, float_format=None, na_rep='NaN',
930
930
fmt_klass = GenericArrayFormatter
931
931
932
932
if space is None :
933
- space = get_option ("print_config .column_space" )
933
+ space = get_option ("print .column_space" )
934
934
935
935
if float_format is None :
936
- float_format = get_option ("print_config .float_format" )
936
+ float_format = get_option ("print .float_format" )
937
937
938
938
if digits is None :
939
- digits = get_option ("print_config .precision" )
939
+ digits = get_option ("print .precision" )
940
940
941
941
fmt_obj = fmt_klass (values , digits , na_rep = na_rep ,
942
942
float_format = float_format ,
@@ -964,9 +964,9 @@ def get_result(self):
964
964
965
965
def _format_strings (self ):
966
966
if self .float_format is None :
967
- float_format = get_option ("print_config .float_format" )
967
+ float_format = get_option ("print .float_format" )
968
968
if float_format is None :
969
- fmt_str = '%% .%dg' % get_option ("print_config .precision" )
969
+ fmt_str = '%% .%dg' % get_option ("print .precision" )
970
970
float_format = lambda x : fmt_str % x
971
971
else :
972
972
float_format = self .float_format
@@ -1091,7 +1091,7 @@ def _make_fixed_width(strings, justify='right', minimum=None):
1091
1091
if minimum is not None :
1092
1092
max_len = max (minimum , max_len )
1093
1093
1094
- conf_max = get_option ("print_config .max_colwidth" )
1094
+ conf_max = get_option ("print .max_colwidth" )
1095
1095
if conf_max is not None and max_len > conf_max :
1096
1096
max_len = conf_max
1097
1097
@@ -1205,35 +1205,35 @@ def set_printoptions(precision=None, column_space=None, max_rows=None,
1205
1205
warnings .warn ("set_printoptions is deprecated, use set_option instead" ,
1206
1206
FutureWarning )
1207
1207
if precision is not None :
1208
- set_option ("print_config .precision" , precision )
1208
+ set_option ("print .precision" , precision )
1209
1209
if column_space is not None :
1210
- set_option ("print_config .column_space" , column_space )
1210
+ set_option ("print .column_space" , column_space )
1211
1211
if max_rows is not None :
1212
- set_option ("print_config .max_rows" , max_rows )
1212
+ set_option ("print .max_rows" , max_rows )
1213
1213
if max_colwidth is not None :
1214
- set_option ("print_config .max_colwidth" , max_colwidth )
1214
+ set_option ("print .max_colwidth" , max_colwidth )
1215
1215
if max_columns is not None :
1216
- set_option ("print_config .max_columns" , max_columns )
1216
+ set_option ("print .max_columns" , max_columns )
1217
1217
if colheader_justify is not None :
1218
- set_option ("print_config .colheader_justify" , colheader_justify )
1218
+ set_option ("print .colheader_justify" , colheader_justify )
1219
1219
if notebook_repr_html is not None :
1220
- set_option ("print_config .notebook_repr_html" , notebook_repr_html )
1220
+ set_option ("print .notebook_repr_html" , notebook_repr_html )
1221
1221
if date_dayfirst is not None :
1222
- set_option ("print_config .date_dayfirst" , date_dayfirst )
1222
+ set_option ("print .date_dayfirst" , date_dayfirst )
1223
1223
if date_yearfirst is not None :
1224
- set_option ("print_config .date_yearfirst" , date_yearfirst )
1224
+ set_option ("print .date_yearfirst" , date_yearfirst )
1225
1225
if pprint_nest_depth is not None :
1226
- set_option ("print_config .pprint_nest_depth" , pprint_nest_depth )
1226
+ set_option ("print .pprint_nest_depth" , pprint_nest_depth )
1227
1227
if multi_sparse is not None :
1228
- set_option ("print_config .multi_sparse" , multi_sparse )
1228
+ set_option ("print .multi_sparse" , multi_sparse )
1229
1229
if encoding is not None :
1230
- set_option ("print_config .encoding" , encoding )
1230
+ set_option ("print .encoding" , encoding )
1231
1231
1232
1232
def reset_printoptions ():
1233
1233
import warnings
1234
1234
warnings .warn ("reset_printoptions is deprecated, use reset_option instead" ,
1235
1235
FutureWarning )
1236
- reset_option ("^print_config \." )
1236
+ reset_option ("^print \." )
1237
1237
1238
1238
def detect_console_encoding ():
1239
1239
"""
@@ -1365,8 +1365,8 @@ def set_eng_float_format(precision=None, accuracy=3, use_eng_prefix=False):
1365
1365
"being renamed to 'accuracy'" , FutureWarning )
1366
1366
accuracy = precision
1367
1367
1368
- set_option ("print_config .float_format" , EngFormatter (accuracy , use_eng_prefix ))
1369
- set_option ("print_config .column_space" , max (12 , accuracy + 9 ))
1368
+ set_option ("print .float_format" , EngFormatter (accuracy , use_eng_prefix ))
1369
+ set_option ("print .column_space" , max (12 , accuracy + 9 ))
1370
1370
1371
1371
def _put_lines (buf , lines ):
1372
1372
if any (isinstance (x , unicode ) for x in lines ):
0 commit comments