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:
Quick Practice
- Load the penguins dataset.
- Check shape, head and info.
- Try printing the list of columns.
