|
11 | 11 | """ |
12 | 12 | import pandas.core.config as cf |
13 | 13 | from pandas.core.config import (is_int, is_bool, is_text, is_instance_factory, |
14 | | - is_one_of_factory, get_default_val, |
15 | | - is_callable) |
| 14 | + is_one_of_factory, is_callable) |
16 | 15 | from pandas.io.formats.console import detect_console_encoding |
17 | 16 |
|
18 | 17 | # compute |
@@ -170,11 +169,6 @@ def use_numexpr_cb(key): |
170 | 169 | frame is truncated (e.g. not display all rows and/or columns) |
171 | 170 | """ |
172 | 171 |
|
173 | | -pc_line_width_doc = """ |
174 | | -: int |
175 | | - Deprecated. |
176 | | -""" |
177 | | - |
178 | 172 | pc_east_asian_width_doc = """ |
179 | 173 | : boolean |
180 | 174 | Whether to use the Unicode East Asian Width to calculate the display text |
@@ -223,11 +217,6 @@ def use_numexpr_cb(key): |
223 | 217 | terminal and hence it is not possible to correctly detect the width. |
224 | 218 | """ |
225 | 219 |
|
226 | | -pc_height_doc = """ |
227 | | -: int |
228 | | - Deprecated. |
229 | | -""" |
230 | | - |
231 | 220 | pc_chop_threshold_doc = """ |
232 | 221 | : float or None |
233 | 222 | if set to a float value, all float values smaller then the given threshold |
@@ -344,13 +333,8 @@ def table_schema_cb(key): |
344 | 333 | validator=is_one_of_factory([True, False, 'truncate'])) |
345 | 334 | cf.register_option('chop_threshold', None, pc_chop_threshold_doc) |
346 | 335 | cf.register_option('max_seq_items', 100, pc_max_seq_items) |
347 | | - cf.register_option('height', 60, pc_height_doc, |
348 | | - validator=is_instance_factory([type(None), int])) |
349 | 336 | cf.register_option('width', 80, pc_width_doc, |
350 | 337 | validator=is_instance_factory([type(None), int])) |
351 | | - # redirected to width, make defval identical |
352 | | - cf.register_option('line_width', get_default_val('display.width'), |
353 | | - pc_line_width_doc) |
354 | 338 | cf.register_option('memory_usage', True, pc_memory_usage_doc, |
355 | 339 | validator=is_one_of_factory([None, True, |
356 | 340 | False, 'deep'])) |
|
0 commit comments