@@ -1446,8 +1446,8 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1446
1446
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1447
1447
float_format = None , sparsify = None , index_names = True ,
1448
1448
justify = None , bold_rows = True , classes = None , escape = True ,
1449
- max_rows = None , max_cols = None , show_dimensions = False ,
1450
- notebook = False , styles = None ):
1449
+ max_rows = None , max_cols = None , show_dimensions = False , style = None ,
1450
+ notebook = False ):
1451
1451
"""
1452
1452
Render a DataFrame as an HTML table.
1453
1453
@@ -1486,7 +1486,8 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1486
1486
max_rows = max_rows ,
1487
1487
max_cols = max_cols ,
1488
1488
show_dimensions = show_dimensions )
1489
- formatter .to_html (classes = classes , notebook = notebook )
1489
+ # TODO: a generic formatter wld b in DataFrameFormatter
1490
+ formatter .to_html (classes = classes , style = style , notebook = notebook )
1490
1491
1491
1492
if buf is None :
1492
1493
return formatter .buf .getvalue ()
@@ -1498,6 +1499,7 @@ def style(self, rows=None, columns=None, table=None):
1498
1499
return self .to_html (styles = styles )
1499
1500
1500
1501
def _format_sytle_args (self , rows = None , columns = None , frame = None ):
1502
+ # TODO: hanlde rows=func.
1501
1503
rows = {row : [x ] if not com .is_list_like (x ) else x
1502
1504
for row , x in rows .items ()}
1503
1505
columns = {col : [x ] if not com .is_list_like (x ) else x
0 commit comments