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