Skip to content

Instantly share code, notes, and snippets.

@talolard
Created March 23, 2018 17:10
Show Gist options
  • Save talolard/b9d062b71d82ee511f75e625d336e31d to your computer and use it in GitHub Desktop.
Save talolard/b9d062b71d82ee511f75e625d336e31d to your computer and use it in GitHub Desktop.
Converting csv to json
import pandas as pd
D = pd.read_csv('./my_csv_file.csv')
D.to_json('./my_new_json_file.json',orient="records")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment