Created
May 31, 2022 19:50
-
-
Save alexhallam/5dc6555929d4972449051d92df22a80d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import tablespoon as tbsp | |
from tablespoon.data import WALMART | |
from mizani.breaks import date_breaks | |
from plotnine import * | |
from datetime import datetime | |
# make date string a date object | |
df_WALMART = WALMART | |
df_WALMART = df_WALMART.assign(ds = lambda df: pd.to_datetime(df.ds)).query("ds > '2016-03-01'") | |
df_WALMART |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment