Created
May 25, 2016 23:27
-
-
Save exp0nge/f86a2188fdae1c0b1b608ce38f002723 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import json data = pd.read_csv('default of credit card clients.csv') | |
with open('data.json', 'w') as f: | |
f.write(data.reset_index().to_json(orient='records')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment