
# 동네별 room_type 비율room_type_ratio = airbnb.groupby(['neighbourhood_group_cleansed', 'room_type']).size().unstack().fillna(0)room_type_ratio = room_type_ratio.div(room_type_ratio.sum(axis=1), axis=0)# 동네별 숙소 수neighbourhood_counts = airbnb['neighbourhood_group_cleansed'].value_counts()# 각 지역 면적 (직접 수치 입력)area_km2 = { 'Manhattan': 59, 'Brooklyn': 183, 'Queens': 283, 'Bronx': 109, ..