There is a lot of examples of reading csv data using python, like this one:
import csv with open(\'some.csv\', newline=\'\') as f: reader = csv.reader(f)
you could get just the first row like:
with open('some.csv', newline='') as f: csv_reader = csv.reader(f) csv_headings = next(csv_reader) first_line = next(csv_reader)