A data frame containing transactions details. This data frame must have columns for policy numbers, transaction dates, transaction types, and transaction amounts.
required
col_pol_num
str
Name of the column in trx_data containing the policy number
'pol_num'
col_trx_date
str
Name of the column in trx_data containing the transaction date
'trx_date'
col_trx_type
str
Name of the column in trx_data containing the transaction type
'trx_type'
col_trx_amt
str
Name of the column in trx_data containing the transaction amount
'trx_amt'
Notes
This function attaches transactions to an ExposedDF object. Transactions are grouped and summarized such that the number of rows in the data does not change. Two columns are added to the output for each transaction type. These columns have names of the pattern trx_n_{*} (transaction counts) and trx_amt_{*} (transaction_amounts). The trx_types property is updated to include the new transaction types found in trx_data.
Transactions are associated with the data object by matching transactions dates with exposure dates ranges found in the ExposedDF.