table-rename

Pandas rename columns according to my dict

Pandas rename columns according to my dict Question: I have many dataframes in pickle format, they have the same information, but columns name are not identical in all of them. For example: > file name: Columns_[‘Weryfikacja UK – 2022-04-14.xlsx_20uk-woocommerce-last-5yrs-expo.pkl’].pkl > columns_nam: Index([‘domain’, ‘phones’, ‘phones_data_source’, ‘company_name’, ‘SourceFile’], dtype=’object’) > > file name: Columns_[‘US _ Canada – …

Total answers: 1