I'm trying to create a loop that opens 24 csv files and concatenate them into one and create one final csv file.
I tried the following and all works until the to the point where I need to concatenate them...
#Filename
file = '160321-PCU'
fileout = file+'ALL.csv'
#Foor loop to read_csv 24 times - this works... this prints me the dfs
for i in range(1,25):
filename = file+str(i)+'.csv'
df = pd.read_csv(gdrive_url+filename, sep=';',
names=['Date','Time_Decimal','Parameter','Value'])
#This is my attempt to concatenate the dfs...
df_concat = pd.concat([df])
#But as soon as I execute the code below to create ONE csv file to one file, it
#just gives me the 160321-PCU24 df... no concatenate...
df_concat.to_csv(gdrive_url_out+fileout, index=True)