In this section, we will learn about using color palettes to customize plot colors in seaborn. We will explore some of the color palettes provided by seaborn and Matplotlib. We'll learn how to change a plot's colors by setting a different palette, and we'll also learn how to create our own palettes with custom colors.
Let's start by importing the modules we need in our Jupyter Notebook with the following code:
import pandas as pdfrom matplotlib import pyplot as plt%matplotlib inlineimport seaborn as sns
We need to import pandas, Matplotlib, and seaborn. We then need to read in our CSV dataset; we do that by using the read_csv method, as follows:
df = pd.read_csv('data-alcohol.csv')df.head()
The output of the ...