I have a list of pathnames to CSV files. I need to open each CSV file, take the data without the header and then merge it all together into a new CSV file.
I have this code which gets me the list of CSV file pathnames:
file_list = []
for folder_name, sub_folders, file_names in os.walk(wd):
for file_name in file_names:
file_extention = folder_name + '\\' + file_name
if file_name.endswith('csv'):
file_list.append(file_extention)
An example of my list is:
['C:\\Users\\Documents\\GPS_data\\West_coast\\Westland\\GPS_data1.csv',
'C:\\Users\\Documents\\GPS_data\\West_coast\\Westland\\GPS_data2.csv',
'C:\\Users\\Documents\\GPS_data\\West_coast\\Westland\\GPS_data3.csv']
I am struggling to figure out what to do, any help would be greatly appreciated. Thanks.