pivotTableEducation = pd.pivot_table(byxs_df, index=['年月'], columns=['分支机构名称'], values=['往来单位编号'], aggfunc=lambda x: len(x.unique()), fill_value=0)
pivotTableEducation = pd.pivot_table(byxs_df, index=['年月'], columns=['分支机构名称'], values=['往来单位编号'], aggfunc=lambda x: len(x.unique()), fill_value=0)