Pandas: `item` has been deprecated

前端 未结 5 1484
情书的邮戳
情书的邮戳 2020-12-17 14:50

So far I used this line of code here:

max_total_gross = event_data[\"max_total_gross\"].loc[event_data[\"event_id\"] == event_id].item()

Si

5条回答
  •  再見小時候
    2020-12-17 15:38

    I just went through the same problem. The quickest way for me to solve the item() depreciation was to use the .iloc[0]

提交回复
热议问题