@@ -1349,7 +1349,7 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1349
1349
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1350
1350
float_format = None , sparsify = None , index_names = True ,
1351
1351
justify = None , bold_rows = True , classes = None , escape = True ,
1352
- max_rows = None , max_cols = None , show_dimensions = False , styles = None ):
1352
+ max_rows = None , max_cols = None , show_dimensions = False , style = None ):
1353
1353
"""
1354
1354
Render a DataFrame as an HTML table.
1355
1355
@@ -1388,7 +1388,8 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1388
1388
max_rows = max_rows ,
1389
1389
max_cols = max_cols ,
1390
1390
show_dimensions = show_dimensions )
1391
- formatter .to_html (classes = classes )
1391
+ # TODO: a generic formatter wld b in DataFrameFormatter
1392
+ formatter .to_html (classes = classes , style = style )
1392
1393
1393
1394
if buf is None :
1394
1395
return formatter .buf .getvalue ()
@@ -1400,6 +1401,7 @@ def style(self, rows=None, columns=None, table=None):
1400
1401
return self .to_html (styles = styles )
1401
1402
1402
1403
def _format_sytle_args (self , rows = None , columns = None , frame = None ):
1404
+ # TODO: hanlde rows=func.
1403
1405
rows = {row : [x ] if not com .is_list_like (x ) else x
1404
1406
for row , x in rows .items ()}
1405
1407
columns = {col : [x ] if not com .is_list_like (x ) else x
0 commit comments