October 2018
Beginner to intermediate
676 pages
18h 30m
English
In plt.boxplot(), by specifying the showfliers=False argument, you can suppress the outliers, so it plots only up to the whiskers on both sides. By specifying the vert=False argument, you can plot the box plots horizontally, and outliers can also be customized with different shapes and colors:
plt.boxplot(data, vert=False, flierprops=dict(markerfacecolor='r', marker='D'))plt.show()
You should see the following output:

Read now
Unlock full access