Documentation

seaborn

Tutorials

Python Seaborn Tutorial - GeeksforGeeks

Seaborn

Data Visualization

seaborn: statistical data visualization — seaborn 0.12.2 documentation

Data Visualization with Python • datagy

Seaborn in Python for Data Visualization • The Ultimate Guide • datagy


Introduction

seaborn is a Python data visualization library based on matplotlib. It provides a high-level interface for creating informative and attractive statistical graphics. Seaborn is built on top of matplotlib and is tightly integrated with the data structures from pandas. It can be used to create many types of plots, including categorical plots, scatter plots, regression plots, and heatmaps.

Installation

pip install seaborn

Example 1: Scatter Plot

import seaborn as sns
import matplotlib.pyplot as plt

df = sns.load_dataset('iris')
sns.scatterplot(x='sepal_length', y='petal_length', data=df, hue='species')
plt.show()

Example 2: Categorical Plot

import seaborn as sns
import matplotlib.pyplot as plt

df = sns.load_dataset('titanic')
sns.catplot(x='class', y='fare', hue='sex', data=df, kind='bar')
plt.show()

Example 3: Heatmap