@@ -1517,7 +1517,7 @@ def to_string(self, buf=None, columns=None, col_space=None, colSpace=None,
1517
1517
def to_html (self , buf = None , columns = None , col_space = None , colSpace = None ,
1518
1518
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1519
1519
float_format = None , sparsify = None , index_names = True ,
1520
- justify = None , force_unicode = False , bold_rows = True ,
1520
+ justify = None , force_unicode = None , bold_rows = True ,
1521
1521
classes = None ):
1522
1522
"""
1523
1523
to_html-specific options
@@ -1527,8 +1527,12 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1527
1527
Render a DataFrame to an html table.
1528
1528
"""
1529
1529
1530
+ import warnings
1531
+ if force_unicode is not None : # pragma: no cover
1532
+ warnings .warn ("force_unicode is deprecated, it will have no "
1533
+ "effect" , FutureWarning )
1534
+
1530
1535
if colSpace is not None : # pragma: no cover
1531
- import warnings
1532
1536
warnings .warn ("colSpace is deprecated, use col_space" ,
1533
1537
FutureWarning )
1534
1538
col_space = colSpace
@@ -1551,7 +1555,7 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1551
1555
def to_latex (self , buf = None , columns = None , col_space = None , colSpace = None ,
1552
1556
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1553
1557
float_format = None , sparsify = None , index_names = True ,
1554
- bold_rows = True ):
1558
+ bold_rows = True , force_unicode = None ):
1555
1559
"""
1556
1560
to_latex-specific options
1557
1561
bold_rows : boolean, default True
@@ -1560,6 +1564,17 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
1560
1564
Render a DataFrame to a tabular environment table.
1561
1565
You can splice this into a LaTeX document.
1562
1566
"""
1567
+
1568
+ import warnings
1569
+ if force_unicode is not None : # pragma: no cover
1570
+ warnings .warn ("force_unicode is deprecated, it will have no "
1571
+ "effect" , FutureWarning )
1572
+
1573
+ if colSpace is not None : # pragma: no cover
1574
+ warnings .warn ("colSpace is deprecated, use col_space" ,
1575
+ FutureWarning )
1576
+ col_space = colSpace
1577
+
1563
1578
formatter = fmt .DataFrameFormatter (self , buf = buf , columns = columns ,
1564
1579
col_space = col_space , na_rep = na_rep ,
1565
1580
header = header , index = index ,
0 commit comments