Seaborn – Basics Of Seaborn & Setup


Seaborn – Basics of Seaborn & Setup

Table Of Contents:

  1. What is Seaborn? Why use it over Matplotlib?

  2. Installing Seaborn (pip install seaborn)

  3. Importing Seaborn & Matplotlib (import seaborn as sns)

  4. Understanding Seaborn’s built-in datasets (sns.get_dataset_names())

  5. Loading datasets (sns.load_dataset("tips"))

(1) What is Seaborn? Why Use It Over Matplotlib?

What Is Seaborn?

Why Use It Over Matplotlib ?

(2) Installing Seaborn Library

pip install seaborn

(3) Verify The Installation

pip show seaborn

(4) Importing Seaborn & Matplotlib (import seaborn as sns)

import seaborn as sns
import matplotlib.pyplot as plt

(5) Understanding Seaborn’s Built-in Datasets.

import seaborn as sns

# Get The List Of Available Dataset
print(sns.get_dataset_names())

(6) Load The Dataset

import seaborn as sns

# Load The 'titanic' Dataset
titanic = sns.load_dataset('titanic')

#Display The First 5 Rows
titanic.head()

Leave a Reply

Your email address will not be published. Required fields are marked *