Unverified Commit 8b4a0464 authored by Noé Lopez's avatar Noé Lopez
Browse files

Export as JSON instead of Excel

parent b6fd9515
...@@ -38,7 +38,7 @@ if response.status_code == 200: ...@@ -38,7 +38,7 @@ if response.status_code == 200:
# Convert to DataFrame # Convert to DataFrame
df = pd.DataFrame(data) df = pd.DataFrame(data)
print(df.head()) print(df.head())
df.to_excel("C://Users//Nandhini//OneDrive//Dokumen//github_data.xlsx") df.to_json("github_data.json")
else: else:
print(f"Failed to fetch issues: {response.status_code}") print(f"Failed to fetch issues: {response.status_code}")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment