I am mu BHello world Jun 24, 2022 • 1 min read fastpages jupyter Make a heatmap Import library Generate Data Plot Heatmap Plot cluster map Make a heatmap Import library import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns Generate Data df = pd.DataFrame(np.random.rand(4,3),columns=["A","B","C"] ) df.head() A B C 0 0.305377 0.364436 0.948724 1 0.100469 0.534330 0.143337 2 0.133616 0.441121 0.912186 3 0.845171 0.277859 0.830589 Plot Heatmap sns.heatmap(df, cmap="viridis" ) plt.show() Plot cluster map sns.clustermap(df, cmap="viridis" ) plt.show()