my tools for viewing covid data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
491 B

1 year ago
import os
import csv
basedir = "COVID-19/csse_covid_19_data/csse_covid_19_daily_reports_us"
headers = []
for fname in os.listdir(basedir):
fpath = os.path.join(basedir, fname)
with open(fpath) as f:
c = csv.reader(f)
for row in c:
headers.append(set(row))
break
for headerset in headers:
for other in headers:
if headerset != other:
print(headerset)
print(other)
print("ok")
print(list(headers[0]))