概要
seabornをインストール(pip install seaborn)することによって、pandasのデータを2Dプロットすることができる。
コード
import pandas as pd
import matplotlib.pyplot as plt
import seaborn
df = pd.DataFrame([[1, 2, 3], [2, 3, 4]], index=["a", "b"], columns=["A", "B", "C"])
plt.figure()
seaborn.heatmap(df)
plt.show()
結果
