Skip to content

Commit

Permalink
Update index.md CLV example
Browse files Browse the repository at this point in the history
Adding  `customer_id` column to the sample dataset.

`customer_id` is a required column otherwise the example fails (as described in pymc-labs#435)
  • Loading branch information
animenon authored Nov 14, 2023
1 parent e9a854d commit e39d0f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ from pymc_marketing import clv

data_url = "https://raw.githubusercontent.com/pymc-labs/pymc-marketing/main/datasets/clv_quickstart.csv"
data = pd.read_csv(data_url)
data['customer_id'] = data.index

beta_geo_model = clv.BetaGeoModel(
data = data
Expand Down

0 comments on commit e39d0f5

Please sign in to comment.