INNER CODE UNIT · Python
correlation_plot
ashishpatel26/Amazing-Feature-Engineering · data_exploration/explore.py:167
def correlation_plot(data,output_path=None):
"""draw the correlation plot between variables.
Parameters
----------
Returns
-------
figure save as PNG
"""
corrmat = data.corr()
fig, ax = plt.subplots()
fig.set_size_inches(11,11)
sns.heatmap(corrmat,cmap="YlGnBu",linewidths=.5,annot=True)
if output_path is not None:
output = os.path.join(output_path,'Corr_plot'+'.png')