-1
df가 있습니다. 하나의 열에 의해 그룹을 수행하고 그 데이터 프레임을 내 함수로 전달하고 싶습니다.그룹 이후에 데이터 프레임을 함수로 전달
def func(dataframe):
....
df = df.groupby(['col1']).func.reset_index()
하지만 난 오류
'DataFrameGroupBy' object has no attribute func
이
1. df = df.groupby(['col1']).func().reset_index() #not working
2. df = df.groupby(['col1']).reset_index()
df = df.func.reset_index() #not working