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
It has been undeprecated again in pandas 1.0 for exactly this use case:
Series.item() and Index.item() have been undeprecated (GH29250)
from https://pandas.pydata.org/docs/whatsnew/v1.0.0.html#deprecations. See also discussion in the issue GH29250.
So consider updating or ignoring or silencing the warning instead.