pandas dataframe cell divided by subtotals

后端 未结 0 1942
慢半拍i
慢半拍i 2020-12-24 07:30

I have a dataframe which looks like this:

My end goal is to calculate the percent of each purpose and for each origin

so the final table should

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