I need to append a dataframe to another dataframe, the columns of tha dataframes have no names. This is my code:
df1 = pd.read_excel(fileName_1, header=0, index= False)
df2 = pd.read_excel(fileName_2, header=0, index= False)
df2 = df2.append(df1, ignore_index = True)
this is the output of this code
nbr de Kilomètres parcourus 2 Nombre de reboot 0
0 NaN NaN Passage en mode privé 1.0
1 NaN NaN Passage en mode public 0.0
but I need it to be as follows:
nbr de Kilomètres parcourus 2
Nombre de reboot 0
Passage en mode privé 1.0
Passage en mode public 0.0
But it seems like python consider the dataframe with only one row as empty and I don't know why
df2: Empty DataFrame Columns: [nbr de Kilomètres parcourus, 3] Index: []
how can I append it in rows not in columns?