월단위 집계에서 분기단위로 거래건수 추이 집계 연습문제 In [38]: # 방식 .... 1번# 월별 건수 테이블 준비 tr028 = tr02[['month','InvoiceNo']].groupby('month').count() tr028.reset_index(inplace=True) tr028.head() Out[38]: monthInvoiceNo01234 2010-12 26157 2011-01 21229 2011-02 19927 2011-03 27175 2011-04 22642 In [34]: # 연도를 제외한 월 코드 추출 tr028.columns = ['month', 'trxcnt'] tr028['monCode']= tr028.month.str.slice(5,7)tr028.head() Out..