
import pandas as pd
df_1 = pd.read_excel('stu.xls')
a = df_1.groupby('年齡').groups # 按照指定列分組{組名:[序號,...]}
print(a)
#遍歷計數
for i in a:
print(i,len(a[i]))

Python drawing square helix teenagers programming electronic society python programming level test level 2 real problem analysis September 2021
Catalog python Draw a square s