Adds a column with a counts of the number of transactions per user

transactions_per_user(tr_df)

Arguments

tr_df

a dataframe of transactions

Value

tr_df a dataframe of transactions with a transaction_count column