import pandas as pd
data=pd.read_excel('/data/course_data/data_analysis/china_city_list.xlsx')
print(data.shape)
groups=data.groupby(by=['Region','Tier'])
groups_count=groups.count()
south_all_count=groups_count.loc'South'.sum()
south_t1_count=groups_count.loc'South','Tier 1'
accounted=south_t1_count/south_all_count
print("shi:{}".format("%.2f%% "%(accounted * 100)))