If I have the following data and Seaborn Heatmap:
import pandas as pd data = pd.DataFrame({\'x\':(1,2,3,4),\'y\':(1,2,3,4),\'z\':(14,15,23,2)}) sns.heatmap(
You can use:
ax = sns.heatmap(data.pivot_table(index='y', columns='x', values='z')) ax.collections[0].colorbar.set_label("Hello")