INNER CODE UNIT · Python
_axis_is_rows
HHammond/PrettyPandas · prettypandas/summarizer.py:8
def _axis_is_rows(axis):
return axis == 0 or axis == 'rows'
def _axis_is_cols(axis):
return axis == 1 or axis == 'columns' or axis == 'index'
class Aggregate(object):
"""Aggreagte
Wrapper to calculate aggregate row on datafame.
:param title:
Aggregate row title
:param func:
Function to be passed to DataFrame.agg
:param subset: