Seaborn Box Plot for Categorical Variables
Python
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.
1| plt.figure(figsize=(10,5)) 2| plt.ylim(0,600) 3| sns.boxplot(x='neighbourhood_group', y='price',data=data) 4| plt.show()
145
130
124
117