@@ -1556,12 +1556,11 @@ def to_string(self, buf=None, columns=None, col_space=None, header=True,
1556
1556
return result
1557
1557
1558
1558
@Appender (fmt .docstring_to_string , indents = 1 )
1559
- def to_html (self , buf = None , columns = None , col_space = None , colSpace = None ,
1560
- header = True , index = True , na_rep = 'NaN' , formatters = None ,
1561
- float_format = None , sparsify = None , index_names = True ,
1562
- justify = None , bold_rows = True , classes = None , escape = True ,
1563
- max_rows = None , max_cols = None , show_dimensions = False ,
1564
- notebook = False , decimal = '.' ):
1559
+ def to_html (self , buf = None , columns = None , col_space = None , header = True ,
1560
+ index = True , na_rep = 'NaN' , formatters = None , float_format = None ,
1561
+ sparsify = None , index_names = True , justify = None , bold_rows = True ,
1562
+ classes = None , escape = True , max_rows = None , max_cols = None ,
1563
+ show_dimensions = False , notebook = False , decimal = '.' ):
1565
1564
"""
1566
1565
Render a DataFrame as an HTML table.
1567
1566
@@ -1585,11 +1584,6 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1585
1584
.. versionadded:: 0.18.0
1586
1585
"""
1587
1586
1588
- if colSpace is not None : # pragma: no cover
1589
- warnings .warn ("colSpace is deprecated, use col_space" ,
1590
- FutureWarning , stacklevel = 2 )
1591
- col_space = colSpace
1592
-
1593
1587
formatter = fmt .DataFrameFormatter (self , buf = buf , columns = columns ,
1594
1588
col_space = col_space , na_rep = na_rep ,
1595
1589
formatters = formatters ,
@@ -1609,11 +1603,11 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1609
1603
return formatter .buf .getvalue ()
1610
1604
1611
1605
@Appender (fmt .common_docstring + fmt .return_docstring , indents = 1 )
1612
- def to_latex (self , buf = None , columns = None , col_space = None , colSpace = None ,
1613
- header = True , index = True , na_rep = 'NaN' , formatters = None ,
1614
- float_format = None , sparsify = None , index_names = True ,
1615
- bold_rows = True , column_format = None , longtable = None ,
1616
- escape = None , encoding = None , decimal = '.' ):
1606
+ def to_latex (self , buf = None , columns = None , col_space = None , header = True ,
1607
+ index = True , na_rep = 'NaN' , formatters = None , float_format = None ,
1608
+ sparsify = None , index_names = True , bold_rows = True ,
1609
+ column_format = None , longtable = None , escape = None ,
1610
+ encoding = None , decimal = '.' ):
1617
1611
"""
1618
1612
Render a DataFrame to a tabular environment table. You can splice
1619
1613
this into a LaTeX document. Requires \\ usepackage{booktabs}.
@@ -1642,11 +1636,6 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
1642
1636
.. versionadded:: 0.18.0
1643
1637
1644
1638
"""
1645
-
1646
- if colSpace is not None : # pragma: no cover
1647
- warnings .warn ("colSpace is deprecated, use col_space" ,
1648
- FutureWarning , stacklevel = 2 )
1649
- col_space = colSpace
1650
1639
# Get defaults from the pandas config
1651
1640
if longtable is None :
1652
1641
longtable = get_option ("display.latex.longtable" )
0 commit comments