I would like to increase the speed at which this operation works
df = pd.DataFrame(columns = ['eventId','total'])
for event in df_events:
df1 = data[data['eventId'] == event]
df = pd.concat([df,df1])
df_events is an object containing a elements that look like this '2015-11-23#54#' This works for the purpose i want but i wondered if there was a quicker way of doing this without using a for loop.