I am looking for a a way to read just the header row of a large number of large CSV files.
Using Pandas, I have this method available, for each csv file:
you have missed nrows=1 param to read_csv
nrows=1
>>> df= pd.read_csv(PATH_TO_CSV, nrows=1) >>> df.columns