Skip to content

Commit

Permalink
Fixed json normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaIurieva committed Dec 7, 2023
1 parent a104422 commit a5dd22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viadot/sources/vid_club.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def get_response(
ind = False

if "data" in keys_list:
df = json_normalize(response["data"])
df = pd.json_normalize(response["data"])
df = pd.DataFrame(df)
length = df.shape[0]
page = 1
Expand All @@ -246,7 +246,7 @@ def get_response(
url=url, headers=headers, method="GET", verify=False
)
response = r.json()
df_page = json_normalize(response["data"])
df_page = pd.json_normalize(response["data"])
df_page = pd.DataFrame(df_page)
if source == "product":
df_page = df_page.transpose()
Expand Down

0 comments on commit a5dd22b

Please sign in to comment.