Pandas Trick - Flatten MultiIndexes

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for this explanation ! Just what I was looking for :)
I ended up writing a function to do some conversion and then use the map function.

sep
Автор

Excellent tip, I think this would also work (aside of the messed up column names):
new_df =