📊 Seaborn — Introduction

Last Updated: 07 Nov 2025


Seaborn is a Python data‑visualization library built on top of matplotlib. It focuses on statistical plots and makes charts look clean and modern with very little code.

  • Easy to write (1–2 line code for common plots)
  • Beautiful styling by default
  • Works great with pandas DataFrames
  • Best for statistical insights

Hinglish Tip 🗣: Matplotlib graphs bante hain, Seaborn unko automatically beautiful bana deta hai.


🔧 Installation

pip install seaborn

🧪 Basic Setup

import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd

📘 Built‑in Datasets

Seaborn includes ready-made datasets so beginners can practice easily.Here are some built-in datasets:

  • tips: Restaurant bill + tip details
  • iris: Iris dataset
  • flights: Flight delays
  • titanic: Titanic dataset
  • penguins: Penguins dataset
df = sns.load_dataset('tips')
df.head()

What We Will Learn

We will cover each most common graph one by one in separate tutorials:

  1. Line Plot
  2. Scatter Plot
  3. Bar Plot
  4. Histogram
  5. Box Plot
  6. Violin Plot
  7. Heatmap
  8. Pairplot
  9. Countplot

Quick Practice

  1. Load the penguins dataset.
  2. Check shape, head and info.
  3. Try printing the list of columns.