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
You could also just use .iloc[0], but keep in mind that it will raise an IndexError if there is not at least one item in the series you're calling it on.
IndexError
s = event_data.loc[event_data.event_id == event_id, 'max_total_gross'] s.iloc[0]