From the course: Python Functions for Data Science

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Seaborn box plots

Seaborn box plots - Python Tutorial

From the course: Python Functions for Data Science

Start my 1-month free trial

Seaborn box plots

- [Instructor] The Seaborn library is a powerful toolkit for data visualization in Python. The Seaborn library is based on the Matplotlib library. Seaborn enables data scientists to create engaging and informative statistical graphics. Seaborn's functions support various types of visualizations. One such visualization is the box plot, also known as the box and whisker plot. I'll be walking through an example to demonstrate how to create a box plot using Seaborn. First, I'm going to import the libraries that I'll need in this notebook. I'll import Pandas and give it the alias PD and I'll import Seaborn and give it the alias SNS. Let's say that I have a dataset containing students' grades on exams in a particular course in a CSV file named grades.CSV. I'll read it into a Pandas DataFrame and save it in a variable named grades, and I'll display the first few rows of the data. Now say I want to create and display a vertical box…

Contents