Open TeorinKim opened 1 year ago
방법 아래와 같이 피벗 테이블을 준비한 후
df = result1.pivot_table( values = '배너변수', index = ['변수1','변수2','변수3'] , aggfunc = 'sum' ) #합 sum, 빈도 count
피벗테이블
reset_index 메서드를 사용하면 됩니다.
df.reset_index(inplace = True)
끝.
방법 아래와 같이 피벗 테이블을 준비한 후
df = result1.pivot_table( values = '배너변수', index = ['변수1','변수2','변수3'] , aggfunc = 'sum' ) #합 sum, 빈도 count
피벗테이블
reset_index 메서드를 사용하면 됩니다.
df.reset_index(inplace = True)
끝.