Skip to content

Commit

Permalink
c7c5076ba0
Browse files Browse the repository at this point in the history
  • Loading branch information
Liftingthedata committed Jun 28, 2023
1 parent 8431fbd commit 28b72c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrapers/vgchartz/scrape_game_sales.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def clean_data(df: pd.DataFrame) -> pd.DataFrame:
)

df["Release Date"] = df["Release Date"].apply(parse_date)
df["Last Updat"] = df["Last Updat"].apply(parse_date)
df["Release Year"] = df["Release Date"].fillna(pd.to_datetime("1900-01-01")).dt.year
df = df.dropna(subset=["Release Date"])
df["Last Update"] = df["Last Update"].apply(parse_date)

df = df.dropna(subset=["Release Year"])
df["Release Year"] = df["Release Date"].dt.year

df = df.drop(["Gamex"], axis=1)
return df
Expand Down

0 comments on commit 28b72c8

Please sign in to comment.