# Gower 모듈 설치 # 범주형, 연속형 데이터를 가진 행들간의 비유사도 계산 !pip install gower 예제 customers = { 'age':[22,25,30,34,45,34,50,47,59,62], 'gender':['m','m','f','m','f','m','f','f','m','f'], 'marriage':['y','n','n','y','y','n','y','y','n','y'], 'salary':[3400,3500,4300,3900,4020,4800, 5030,2900,4500,3400], 'children':[True, False,False,True,True,False,True,False,True,False], 'purchase_type':['low','low','low','heavy','heavy','low','heavy','low','heavy','low'] } import pandas as pd df = pd.DataFrame(customers) df.index = ['user01','user02','user03','user04','user05','user06','user07','user08','user09','user10'] df age g