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.

Revisions

  1. talolard created this gist Mar 23, 2018.
    3 changes: 3 additions & 0 deletions convert_to_json.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    import pandas as pd
    D = pd.read_csv('./my_csv_file.csv')
    D.to_json('./my_new_json_file.json',orient="records")