How do i concatenate data frames from a list called 'df_list' containing names of pandas dataframes? the list is generated through a looping process.
df_list = ['x_0', 'x_1', 'x_2', 'x_3']
xyz=pd.concat((x_0, x_1, x_2, x_3), axis=0)
xyz
I can always concatenate it like as above manually. However since the number of dataframes can increase or decrease in an automated process. How do i dynamically use this list with concat function?
This doesnt work => xyz=pd.concat((df_list ), axis=0)
Tried converting df_list to series but that also doesnt work.
I am a beginner. any help is appreciated.