Skip to content

Commit

Permalink
0c64847b81
Browse files Browse the repository at this point in the history
  • Loading branch information
Liftingthedata committed Jun 28, 2023
1 parent 28b72c8 commit 8352bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions scrapers/twitter/sentiment_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ def main(
"promote",
"click",
"shopify",
"playstation",
"ps5",
"nintendo",
"nintendoswitch",
]

df = main(
Expand Down
3 changes: 1 addition & 2 deletions scrapers/vgchartz/scrape_game_sales.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,10 @@ def clean_data(df: pd.DataFrame) -> pd.DataFrame:

df["Release Date"] = df["Release Date"].apply(parse_date)
df = df.dropna(subset=["Release Date"])
df["Last Update"] = df["Last Update"].apply(parse_date)

df["Release Year"] = df["Release Date"].dt.year
df = df.drop(["Last Update", "Release Date", "Gamex", "__index_level_0__"], axis=1)

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


Expand Down

0 comments on commit 8352bac

Please sign in to comment.