2021-11-06 pandas_ピボットテーブル pd.pivot_table(df,index="XX",colums="XX",values="XX")margins=Trueで総計も取れるけど、使わないかなぁ。