Seaborn violin plot for pandas data

690 views Asked by At

I have a pandas dataframe heights_table with following info: Columns: Age, Height. Rows: each person in data set

I want to generate a seaborn violin plot from this data. On the x-axis I want range of ages, and on the y axis, I want a 'blob' of height distributions for each of these ages. I know how to do a boxplot for this:

heights_table.boxplot(by='age')

How can I do a violin plot in seaborn for this? I have tried to read documentation here, but couldn't get it to work. Any help with be greatly appreciated!

0

There are 0 answers