Skip to content

Instantly share code, notes, and snippets.

@alexhallam
Created May 31, 2022 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexhallam/5dc6555929d4972449051d92df22a80d to your computer and use it in GitHub Desktop.
Save alexhallam/5dc6555929d4972449051d92df22a80d to your computer and use it in GitHub Desktop.
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