I'm having a little issue with the following code:
def process_row(row):
liens = row['Liens']
df_excel = pd.read_excel(liens)
df_excel['Name'] = row['Name']
print(df_excel)
return df_excel
result_df = new_df.apply(process_row, axis=1)
new_df is a dataframe where 'Liens' is a column with multiple windows link to excel such as C:/Documents/.../test.xlsx When printing df_excel it does display the data in the excel file correctly, but not in result_df, it returns me a serie that is different from excel_df and I have no idea why... I would like to have a dataframe result_df with all the data from the multiple excel file regrouped.
Thanks for your help!!