@@ -202,6 +202,17 @@ def use_numexpr_cb(key):
202
202
(default: False)
203
203
"""
204
204
205
+ pc_html_border_doc = """
206
+ : int
207
+ A ``border=value`` attribute is inserted in the ``<table>`` tag
208
+ for the DataFrame HTML repr.
209
+ """
210
+
211
+ pc_html_border_deprecation_warning = """\
212
+ html.border has been deprecated, use display.html.border instead
213
+ (currently both are identical)
214
+ """
215
+
205
216
pc_line_width_deprecation_warning = """\
206
217
line_width has been deprecated, use display.width instead (currently both are
207
218
identical)
@@ -369,6 +380,8 @@ def table_schema_cb(key):
369
380
validator = is_bool )
370
381
cf .register_option ('html.table_schema' , False , pc_table_schema_doc ,
371
382
validator = is_bool , cb = table_schema_cb )
383
+ cf .register_option ('html.border' , 1 , pc_html_border_doc ,
384
+ validator = is_int )
372
385
373
386
374
387
cf .deprecate_option ('display.line_width' ,
@@ -378,16 +391,13 @@ def table_schema_cb(key):
378
391
cf .deprecate_option ('display.height' , msg = pc_height_deprecation_warning ,
379
392
rkey = 'display.max_rows' )
380
393
381
- pc_html_border_doc = """
382
- : int
383
- A ``border=value`` attribute is inserted in the ``<table>`` tag
384
- for the DataFrame HTML repr.
385
- """
386
-
387
394
with cf .config_prefix ('html' ):
388
395
cf .register_option ('border' , 1 , pc_html_border_doc ,
389
396
validator = is_int )
390
397
398
+ cf .deprecate_option ('html.border' , msg = pc_html_border_deprecation_warning ,
399
+ rkey = 'display.html.border' )
400
+
391
401
392
402
tc_sim_interactive_doc = """
393
403
: boolean
0 commit comments