I have roughly 20 csv files (all with headers) that I would like to merge all of them into 1 csv file.
Looking online, one way I found was to use the terminal command:
cat *.csv > file.csv
This worked just fine, but the problem is, as all the csv file comes with the headers, those also get placed into the csv file.
Is there a terminal command or python script on which I can merge all those csv files into one and keep only one header?
Thank you so much