fusetools.stat_tools.Desc

class fusetools.stat_tools.Desc[source]

Bases: object

Functions for helping with Descriptive statistical tasks.

Methods

group_stats

Creates a Pandas DataFrame with specified aggregations over specified dimensions.

make_tbl

Creates a plot of a data table.

classmethod group_stats(df, dim_cols, agg_dict)[source]

Creates a Pandas DataFrame with specified aggregations over specified dimensions.

Parameters
  • df – Pandas DataFrame.

  • dim_cols – List of columns to group by.

  • agg_dict – Dictionary of columns and calculations to perform.

Returns

Pandas DataFrame of calculated results.

classmethod make_tbl(width, height, df, title, font_size)[source]

Creates a plot of a data table.

Parameters
  • width – Width of table.

  • height – Height of table.

  • df – Pandas DataFrame.

  • title – Title of plot.

  • font_size – Font size.

Returns

Plot of a data table.