Skip to content

Commit

Permalink
Fix related to column renaming after aggregating test frequency (#698)
Browse files Browse the repository at this point in the history
Co-authored-by: Colt Allen <10178857+ColtAllen@users.noreply.github.com>
  • Loading branch information
2 people authored and twiecki committed Sep 10, 2024
1 parent df0abcb commit 690a79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc_marketing/clv/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def rfm_train_test_split(
).reset_index()

test_rfm_data = test_rfm_data.rename(
columns={"id": "customer_id", "date": "test_frequency"}
columns={customer_id_col: "customer_id", datetime_col: "test_frequency"}
)

if monetary_value_col:
Expand Down

0 comments on commit 690a79a

Please sign in to comment.