Skip to content

Provide data url in python package #1410

Open
@wd60622

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions