Skip to content

Commit 8edd975

Browse files
chore: return json in main lib function
1 parent 1addea2 commit 8edd975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api_to_dataframe/models/get_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_response(endpoint: str,
2020
@staticmethod
2121
def to_dataframe(response):
2222
try:
23-
df = pd.DataFrame(response.json())
23+
df = pd.DataFrame(response)
2424
except Exception as err:
2525
raise TypeError(f"Invalid response for transform in dataframe: {err}")
2626

0 commit comments

Comments
 (0)