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()
Since I updated Pandas I receive the future warning:
/opt/conda/lib/python3.7/site-packages/ipykernel_launcher.py:12:
FutureWarning: item
has been deprecated and will be removed in a
future version if sys.path[0] == '':
I tried to fix it that way, but it's not the same outcome:
event_data.loc[event_data.event_id == event_id, 'max_total_gross']
I expected a single integer.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…