Swap index values based on condition

前端 未结 0 857
挽巷
挽巷 2021-02-02 07:06

I have a pandas dataframe with a (two-level) multi-index and would like to swap levels only if a condition is met. In my case, the condition is if the second in

相关标签:
回答
  • 消灭零回复
提交回复
热议问题