INNER CODE UNIT · Python
apply
HHammond/PrettyPandas · prettypandas/summarizer.py:85
def apply(self, styler):
"""Apply Summary over Pandas Styler"""
return styler.format(self.formatter, *self.args, **self.kwargs)
class PrettyPandas(object):
"""PrettyPandas
Parameters
----------
:param data: DataFrame.
:param summary_rows:
list of Aggregate objects to be appended as a summary.
:param summary_cols:
list of Aggregate objects to be appended as a summary.
:param formatters:
List of Formatter objects to format.
"""