add parallel groupby.apply for pandas dataframe