パンダのデータフレームのセルを別のものに設定したいと思います。たとえば:パンダが1つのセル値を別のセル値に設定する
station_dim.loc[station_dim.nlc==573,'longitude']=station_dim.loc[station_dim.nlc==5152,'longitude']
はしかし、私は
station_dim.loc[station_dim.nlc==573,'longitude']
を確認したときにそれはNaN
がそばに数にstation_dim.loc[station_dim.nlc==573,'longitude']
を設定し返し、私は他に何の選択肢がありますか?なぜこの方法を使用できないのですか?
'station_dim.loc [station_dim.nlc == 5152、 '経度']'自体は何を返しますか? – IanS
station_dim.loc [station_dim.nlc == 573、 '経度']に手動で割り当てることができる浮動小数点数です。しかし、スケールアップが必要な場合は、手動で行うことはできません。 –