Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure in CLV quickstart #440

Merged
merged 1 commit into from
Nov 18, 2023
Merged

Fix failure in CLV quickstart #440

merged 1 commit into from
Nov 18, 2023

Conversation

xhulianoThe1
Copy link
Contributor

@xhulianoThe1 xhulianoThe1 commented Nov 17, 2023

Based on this issue: #435


📚 Documentation preview 📚: https://pymc-marketing--440.org.readthedocs.build/en/440/

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data = pd.read_csv(data_url)
data = pd.read_csv(data_url, index=None)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that work?

Copy link
Contributor Author

@xhulianoThe1 xhulianoThe1 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, index isn't a param for read_csv you'd have to use index_col but nonetheless a column called "customer_id" is required for the Beta Geo Model. I could be missing something here though...

@twiecki twiecki merged commit 30c91ee into pymc-labs:main Nov 18, 2023
8 of 9 checks passed
@ricardoV94 ricardoV94 changed the title CLV quickstart fix Fix failure in CLV quickstart Dec 7, 2023
@ricardoV94 ricardoV94 added docs Improvements or additions to documentation CLV labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLV docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants