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:
it is easy you can use this:
df = pd.read_csv("path.csv", skiprows=0, nrows=2) df.columns.to_list()
In this case you can only read really few row for get your header