how to get multiple conditional operations after a pandas groupby?,return df.groupby('A').apply(my_func)