Combine multiple csv files (with the same name) into one csv from multiple folders


I’m somewhat new to python and am trying to figure out the easiest way to write the code for a task. I’m trying to create a master csv file (with one header but includes all the information from each of the individual csv files) from multiple csv files that all have the same name. Each of the individual csv files is in a folder with a unique name. How would I pull the information from each of the identically named CSV files and insert it into the Master CSV?

Thanks for any feedback on the topic!

on windows: C:> name*.csv merged.csv
on linux: sed 1d name*.csv > merged.csv