Data Visualization Lab Manual
Experiment: Visualization using Heatmap, Boxplot, and Pair Plot
Aim: To visualize a dataset using Heatmap, Boxplot, and Pair Plot.
Software Requirements:
Python, Jupyter Notebook, Pandas, Matplotlib, Seaborn
Dataset Used: Iris Dataset
Procedure:
1 Import required libraries (pandas, matplotlib, seaborn).
2 Load the iris dataset using seaborn.
3 Explore the dataset using head(), info(), and describe().
4 Generate a correlation matrix and plot Heatmap.
5 Create Boxplot to identify distribution and outliers.
6 Generate Pair Plot to analyze relationships between features.
Python Code (Sample):
import pandas as pd import seaborn as sns import [Link] as plt data =
sns.load_dataset('iris') # Heatmap [Link]([Link]('species', axis=1).corr(), annot=True)
[Link]() # Boxplot [Link](x='species', y='sepal_length', data=data) [Link]() # Pair Plot
[Link](data, hue='species') [Link]()
Result: Dataset successfully visualized using Heatmap, Boxplot, and Pair Plot.
Learning Outcomes:
Students understand data distribution, correlation, and relationships using visualization techniques.