xxxxxxxxxx
import seaborn as sns
ax1 = sns.distplot(df['predicted'], hist=False, color='r', label = 'predicted')
sns.distplot(df['actual'], hist=False, color='g', label = 'actual', ax=ax1)
xxxxxxxxxx
Distribution plot is used to see whether values are normally distributed.
Sometimes it is used to compare real value with expected/predicted value
to identify which portion of the dataset did the model fail to capture.