import pandas as pd

# Load your CSV
df = pd.read_csv("reshaped_budget_approval.csv")

# Convert to JSON records
json_data = df.to_dict(orient='records')

# Save to a JSON file
import json
with open("budget_data.json", "w") as f:
    json.dump(json_data, f, indent=4)

print("✅ Done! JSON saved as budget_data.json")
