I had a dataframe and did a groupby in FIPS and summed the groups that worked fine.
kl = ks.groupby('FIPS')kl.aggregate(np.sum)
I just want a normal Dataframe back but I have a pandas.core.groupby.DataFrameGroupBy
object.
I had a dataframe and did a groupby in FIPS and summed the groups that worked fine.
kl = ks.groupby('FIPS')kl.aggregate(np.sum)
I just want a normal Dataframe back but I have a pandas.core.groupby.DataFrameGroupBy
object.
df_g.apply(lambda x: x)
will return the original dataframe.