Skip to content

Instantly share code, notes, and snippets.

@max-torch
Last active May 26, 2021 10:20
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 max-torch/5ac776c374ef9290aadf1d00866f0f56 to your computer and use it in GitHub Desktop.
Save max-torch/5ac776c374ef9290aadf1d00866f0f56 to your computer and use it in GitHub Desktop.
bssoupblog3
import pandas as pd
#Create dataframe from columns
Dict = {"Date": wht_date, "Items": wht_items, "Type": wht_type, "Total": wht_total}
df = pd.DataFrame.from_dict(Dict)
df.Date = pd.to_datetime(df.Date, infer_datetime_format=True)
df_no_refund = df[:-2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment