1
パンダのデータフレームで2つの列をどのように平坦化しますか?パンダのデータフレームの列を整理し、元に戻す
例えば
Task 1 :
company-asset company-debt wealth
GOLD SILVER 2000.0
BRONZE IRON 4000.0
IRON GOLD 1500.0
今私は(資産が+で、債務がマイナスである場合)
GOLD SILVER BRONZE IRON
500 -2000 4000 -2500
Task 2:
Now i want to get the original dataframe with rows where value of
the columns in dataframe 2 is greater than -1000 and less than +1000.
So in the case above it will only be GOLD therefore we get this DF
company-asset company-debt wealth
GOLD SILVER 2000.0
IRON GOLD 1500.0
です。 –