historical.py 290 B

1234567891011121314
  1. import csv
  2. data = []
  3. headers = None
  4. with open('historical_dump.csv') as csv_file:
  5. csv_reader = csv.reader(csv_file, delimiter=',')
  6. for line in csv_reader:
  7. if not headers:
  8. headers = line
  9. else:
  10. data.append(line)
  11. print(headers)
  12. print(data[0])