我試圖劃分在由索引數據幀中的所有列。(1221行,1000列)熊貓鴻溝據幀值
5000058004097 5000058022936 5000058036940 5000058036827 \
91.0 3.667246e+10 3.731947e+12 2.792220e+14 2.691262e+13
94.0 9.869027e+10 1.004314e+13 7.514220e+14 7.242529e+13
96.0 2.536914e+11 2.581673e+13 1.931592e+15 1.861752e+14
...
這裏是我試過的代碼...
A = SHIGH.divide(SHIGH.index, axis =1)
,我得到這個錯誤:
ValueError: operands could not be broadcast together with shapes (1221,1000) (1221,)
我也曾嘗試
A = SHIGH.divide(SHIGH.index.values.tolist(), axis =1)
並且還重新索引並使用該列來劃分並得到相同的錯誤。
如果有人可以請指出我的錯誤,將不勝感激。