SNIPPET
1 Upvote

Seaborn Box Plot for Categorical Variables

Python
Visualisation & EDA

In this visualisation we plot the price for each neighbourhood group which is a discrete variable. This results in a chart with a box plot for each value in the neighbourhood group.

plt.figure(figsize=(10,5))
plt.ylim(0,600)
sns.boxplot(x='neighbourhood_group', y='price',data=data)
plt.show()
{{ snippet.title}

By analyseup - Last Updated Sept. 17, 2021, 2:12 p.m.

COMMENTS
RELATED SNIPPETS
2
Search Snippets by Tag: