INNER CODE UNIT · Python

_axis_is_cols

HHammond/PrettyPandas · prettypandas/summarizer.py:12

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:
        Subset of DataFrame to compute aggregate on
    :param axis:
        Pandas axis to compute over

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…