如何根据定义的条件交换数据框中的值?
给出:
DF[['Exchange','predictions']]
Exchange predictions
0 PINK <UNK>
1 PINK <UNK>
2 PINK <UNK>
3 PINK <UNK>
4 PINK <UNK>
... ... ...
490541 NASDAQ PINK
490542 NaN PINK
490543 NASDAQ PINK
490544 NaN PINK
490545 NASDAQ PINK
我想交换与值在预测替换仅当交换值为NaN与预测值不
答案 0 :(得分:1)
让我们尝试在部分条件为<?php
$ressource = curl_init("https://samples.openweathermap.org/data/2.5/weather?q=London,uk&appid=439d4b804bc8187953eb36d2a8c26a02");
$data = curl_exec($ressource);
curl_close($ressource);
的情况下fillna
Series