Skip to content

Instantly share code, notes, and snippets.

@exp0nge
Created May 25, 2016 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exp0nge/f86a2188fdae1c0b1b608ce38f002723 to your computer and use it in GitHub Desktop.
Save exp0nge/f86a2188fdae1c0b1b608ce38f002723 to your computer and use it in GitHub Desktop.
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