#70 Basic density plot with seaborn

 

 

 

 

With seaborn, a  density plot is made using the kdeplot function. As input, density plot need only one numerical variable. See how to use this function below:

 

 

 

 

 

 


# library & dataset
import seaborn as sns
df = sns.load_dataset('iris')

# Make default density plot
sns.kdeplot(df['sepal_width'])
#sns.plt.show()

Leave a Reply

Your email address will not be published.