finding streaks in pandas dataframe,df.groupby('loser').apply(f)