hpipy.period_table.PeriodTable.__init__#

PeriodTable.__init__(trans_df, period_table=None)[source]#

Initialize period table.

Parameters:
  • trans_df (pd.DataFrame) – Transaction data.

  • period_table (pd.DataFrame | None) – Period table.

Raises:

TypeError – If ‘trans_df’ is not or does not inherit from a DataFrame.

Return type:

None