1import matplotlib.pyplot as plt
2import seaborn as sns
3
4# optional: resize images from now on
5plt.rcParams["figure.figsize"] = (16, 12)
6
7# numeric_only_columns is a list of columns of the DataFrame
8# containing numerical data only
9# annot = True to visualize the correlation factor
10
11sns.heatmap(df[numeric_only_columns].corr(), annot = False)
12plt.show()