Wide-form plot

Seaborn also supports wide-form data plots. Let's read in the following dataset to demonstrate one:

df = pd.read_csv('data-alcohol.csv')df.head()

The output is as follows:

We can create a wide-form box plot with the following command:

sns.boxplot(data=df, orient="h");

The output of the preceding code is as follows:

Here, we have created a wide-form box plot by passing in our dataset and passing the orient as h.

Get Mastering Exploratory Analysis with pandas now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.