Volume 1: Data Handling using Pandas & Visualization
CBSE Examination Unit 1 • Weightage: 25 Marks (Highest Weightage Unit)
“Data is the new oil, but unindexed data is crude. Pandas gives you the refinery.”
Unit Overview & Architectural Blueprint
In the CBSE Class 12 Information Practices (Code 065) curriculum, Unit 1: Data Handling using Pandas and Data Visualization represents the core programming component, carrying 25 out of 70 theory marks.
This volume systematically covers the complete data analysis and visualization pipeline:
mermaid
graph LR
A[Raw Data Sources<br/>ndarray / Dict / CSV] --> B[1D Pandas Series]
A --> C[2D Pandas DataFrame]
B --> D[Vectorized Operations & Index Alignment]
C --> E[loc / iloc Slicing & Boolean Filtering]
C --> F[Descriptive Stats & GroupBy]
E --> G[Matplotlib Pyplot]
F --> G
G --> H[Line / Bar / Histogram Visuals]Complete Chapter Navigation
Chapter 1
Python Pandas Series Fundamentals
1D labeled homogeneous array structure. Creation from ndarray, dictionary, and scalar values. Mathematical operations, vectorization, index alignment, NaN handling, and head/tail methods.
Read Chapter 1 →Chapter 2
DataFrame Operations, Indexing & Slicing
2D labeled heterogeneous tabular structure. Creation from dictionaries, lists of dicts, and Series. Column/row addition, deletion, renaming, iteration (iterrows), and loc vs iloc slicing.
Read Chapter 2 →Chapter 3
Descriptive Stats, GroupBy & CSV I/O
Summary statistics (mean, median, mode, std, var, quantile), GroupBy aggregation, sorting by index/values, missing data management (isna, dropna, fillna), and CSV file read/write.
Read Chapter 3 →Chapter 4
Data Visualization with Matplotlib Pyplot
Plotting line charts, vertical/horizontal bar graphs, side-by-side multiple bars, and histograms. Customizations: titles, axis labels, legends, grid lines, colors, line styles, and saving figures.
Read Chapter 4 →Interactive Topic Visualizer
Multi-Mode DiagramPandas DataFrame: 2D Heterogeneous Tabular Data Structure & loc/iloc Slicing
Option 1: Publication-Grade Scientific Vector SVG
Two-dimensional tabular data structure with labeled axes (index rows and columns). Illustrating explicit label indexing (loc[row_label, col_label]) vs zero-based integer position indexing (iloc[row_pos, col_pos]).
loc (Label-based Slicing, Both Ends Included):
iloc (Position-based Slicing, End Excluded):
Unit 1 Board Exam Checklist (25 Marks)
- [ ] Can you distinguish between
loc(label-based, both endpoints included) andiloc(positional, stop excluded)? - [ ] Do you know what happens when two Series with mismatched indices are added (automatic alignment with
NaN)? - [ ] Can you write code to create side-by-side multiple bar charts using offset
xcoordinates? - [ ] Can you filter missing data using
df.dropna(how='all')vsdf.dropna(how='any')? - [ ] Do you know the exact syntax for
pd.read_csv()anddf.to_csv()?