Data Analysis using Python
Notes for 3rd Year [Link]. Students
Unit 1: Introduction to Data
Analysis and Python
• - Data Analysis: Inspecting, cleaning, modeling
data
• - Types of Data: Qualitative, Quantitative
• - Libraries: NumPy, Pandas, Matplotlib,
Seaborn
• - Environment: Jupyter Notebook
Unit 2: NumPy for Data Analysis
• - Create arrays: [Link](), [Link](),
[Link]()
• - Operations: Indexing, slicing, broadcasting
• - Functions: [Link](), [Link](), [Link]()
Unit 2: NumPy Example
• import numpy as np
• a = [Link]([1, 2, 3])
• print([Link](a)) # Output: 2.0
Unit 3: Pandas for Data Handling
• - Series and DataFrame structures
• - Read data: pd.read_csv(), pd.read_excel()
• - Select/Filter/Sort/Group: loc[], iloc[],
groupby()
Unit 3: Pandas Example
• import pandas as pd
• df = pd.read_csv("[Link]")
• print([Link]())
Unit 4: Data Cleaning and
Preprocessing
• - Handle missing: isnull(), dropna(), fillna()
• - Rename: [Link](), Type conversion:
astype()
• - Drop duplicates: df.drop_duplicates()
Unit 5: Data Visualization
• - Matplotlib: plot(), bar(), hist(), scatter()
• - Seaborn: histplot(), boxplot(), heatmap()
Unit 5: Visualization Example
• import [Link] as plt
• import seaborn as sns
• [Link](data=df, x='column_name')
• [Link]()
Unit 6: Basic Statistical Analysis
• - Descriptive stats: mean, median, std dev
• - Correlation: [Link]()
• - Value counts: df['col'].value_counts()