The kde() function plots the probability density estimation of a given continuous variable. It is a non-parametric kind of estimator. In our example, the kde() function takes one parameter, satisfaction_level, and plots the KDE:
# Create density plot
sns.kdeplot(df.satisfaction_level)
# Show figure
plt.show()
This results in the following output:
In the preceding code block, we have created a density plot using kdeplot(). In the next section, we will see another distribution plot, which is a combination of a density and box plot, known as a violin plot.