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
I just went through the same problem. The quickest way for me to solve the item() depreciation was to use the .iloc[0]
item()
.iloc[0]