I have a pandas dataframe with user information. I would like to plot the age of users as both a kind=\'kde\' and on kind=\'hist\' on
dataframe
kind=\'kde\'
kind=\'hist\'
It is better and even simpler to use seaborn.displot. Prior proposed solutions had KDE plot appear a little "shifted up" for me. seaborn.distplot accurately lined up zeros between hist and kde plots. import seaborn as sns sns.displot(df.a)
seaborn.distplot
import seaborn as sns sns.displot(df.a)