Skip to content

Instantly share code, notes, and snippets.

@masaponto
Created February 7, 2020 13:44
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 masaponto/9d57107b5549ee5ed03ae1c392fe6ae5 to your computer and use it in GitHub Desktop.
Save masaponto/9d57107b5549ee5ed03ae1c392fe6ae5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import pandas as pd
def main():
df = pd.read_csv('app_master.csv', index_col=None)
json = df.to_json(orient='records',force_ascii=False)
print(json)
with open("app_master.json", mode='w') as f:
f.write(json)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment