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

Provide data url in python package #1410

Open
wd60622 opened this issue Jan 18, 2025 · 0 comments
Open

Provide data url in python package #1410

wd60622 opened this issue Jan 18, 2025 · 0 comments
Labels
docs Improvements or additions to documentation

Comments

@wd60622
Copy link
Contributor

wd60622 commented Jan 18, 2025

I thought this is what pyprojroot was providing, but it is not...

The raw URL is used a lot in the package and I think it would convenient to provide it in the package.

import pandas as pd
from pymc_marketing.paths import data_url

file = data_url / "mmm_example.csv"
df = pd.read_csv(file, parse_dates=["date_week"])

Then anything here can easily be constructed.

https://github.com/pymc-labs/pymc-marketing/blob/8a0b0767ce93c820e568a1ff09d54148ec4a3fac/data/

Here are all the references:

https://github.com/search?q=repo%3Apymc-labs%2Fpymc-marketing%20%22raw.github%22&type=code

@wd60622 wd60622 added docs Improvements or additions to documentation and removed Needs Triage labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant