Skip to content

Commit

Permalink
Do rename trackId if it has not already been added
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Oct 1, 2024
1 parent 098bcd4 commit e54225e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adscrawler/app_stores/apple.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def scrape_app_ios(store_id: str, country: str) -> dict:


def clean_ios_app_df(df: pd.DataFrame) -> pd.DataFrame:
if 'store_id' not in df.columns:
df = df.rename(columns={"trackId": "store_id"})
df = df.rename(
columns={
# "trackId": "store_id",
Expand Down

0 comments on commit e54225e

Please sign in to comment.