import pandas as pd df = pd.DataFrame([['本', "2022/1", 3000], ['食品', "2022/1", 70000], ['衣料品', "2022/1", 1000]]) df.columns = ['カテゴリ', '年月', '購入金額'] print(df)