I came across this script I had help with a while ago. Basically taking a csv and exporting it JSON format but how do I go about running the code? I tried doing python hello.py
import csv
import json
with open('sea-lead-csv.csv') as fd:
reader = csv.DictReader(fd)
data = []
for row in reader:
row['Name'] = row.pop('No')
data.append(row)
print(json.dumps(data, indent=2))