Professional Documents
Culture Documents
Week5 N9
Week5 N9
Lab Record
Aim: Write a program to perform Exploratory Data Analysis on real time datasets.
a) Univariate Analysis
b) Multivariate Analysis
c) Visualization using correlation matrix
Code:
import pandas as pd
import matplotlib.pyplot as plt
# Display basic statistics for each numerical column in the dataset print(df.describe())
# Display the number of missing values for each column in the dataset
print(df.isnull().sum())
# Compute the correlation matrix for the numerical columns in the dataset
corr = df.corr()