This file contains hidden or 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
# pip install pandas | |
import pandas as pd | |
import sys | |
if len(sys.argv) is 2: | |
print(f'Error: 2 arguments required. Input file and output file. eg: to_csv.py file.json file.csv') | |
sys.exit() | |
input_file = sys.argv[1] | |
output_file = sys.argv[2] |