Pandas Series Class 12 PYQs 2024–2026 with Solutions | CBSE Informatics Practices Skip to content
Smart Notes for Every Exam · instant PDF download after payment +91 92520 37565
Class 12 · Informatics Practices · Chapter 1

Pandas Series: Class 12 PYQs 2024–2026 with solutions

All 17 CBSE board questions asked from Pandas Series in 3 board papers, with the year, set and marks of each. 10 are solved free below. The Class 12 Informatics Practices PYQ Book: Solved Board Papers 2024-2026 (CBSE) has every solution, all chapters and 3 full board papers.

Cover of Class 12 Informatics Practices PYQ Book: Solved Board Papers 2024-2026 (CBSE)
Class 12 Informatics Practices PYQ book: every chapter + 3 board papers, all solved
₹99₹14934% off
Free sample

Pandas Series: board weightage

Board weightage 2024–2026

Year202420252026
Questions476
Marks61110

Most asked topics

Accessing and attributes5
Creating a Series5
Series output questions5
Pandas Series2

17 questions from 3 papers. Repeated questions are shown once with every year they were asked.

Jump to: 1 mark2 marks3 marks

1 mark: MCQ and Assertion–Reason

Q1 · CBSE 2026 · 90 · Q11 mark

True or False: In a Pandas Series, the positional index can be a string or an integer.

Solution

False. Positional indices are always integers 0, 1, 2…; only labels can be strings.

Q2 · CBSE 2026 · 90 · Q141 mark

Creating a Series from a dictionary: (A) values become indices (B) keys become values (C) keys become the indices (D) default integer indices

Solution

(C) The keys of the dictionary become the index.

Q3 · CBSE 2026 · 90 · Q151 mark

ser1[start:end] with positional indices: (A) end included (B) end excluded (C) both excluded (D) start excluded

Solution

(B) The element at the end position is excluded.

Q4 · CBSE 2025 · 90 · Q61 mark

Default index type for a Pandas Series if not explicitly specified? (A) String (B) List (C) Numeric (D) Boolean

Solution

(C) Numeric: 0, 1, 2, …

Q5 · CBSE 2025 · 90 · Q91 mark

Data structure for one-dimensional labelled data in Pandas? (A) Integer (B) Dictionary (C) Series (D) DataFrame

Solution

(C) Series.

Q6 · CBSE 2025 · 90 · Q131 mark

Statement to select the element with index points from Series ser: (A) ser.element(points) (B) ser.select(points) (C) ser[points] (D) ser.show(points)

Full step-by-step solution is in the PYQ book (₹99).
Q7 · CBSE 2025 · 90 · Q151 mark

Which library defines an ndarray? (A) pandas (B) numpy (C) matplotlib (D) scipy

Full step-by-step solution is in the PYQ book (₹99).
Q8 · CBSE 2024 · 90 · Q101 mark

Output: dd={'One':1,'Two':2,'Three':3,'Seven':7}; rr=pd.Series(dd); rr['Four']=4; print(rr)

Full step-by-step solution is in the PYQ book (₹99).
Q9 · CBSE 2024 · 90 · Q121 mark

Which will NOT show the first five rows of Series S1? (i) S1[0:5] (ii) S1.head() (iii) S1.head(5) (iv) S1.head[0:5]

Full step-by-step solution is in the PYQ book (₹99).

2 marks: very short answer

Q10 · CBSE 2026 · 90 · Q22(A)2 marks

(a) Two characteristics of the Pandas library.

Solution

Any two: tabular data structures (Series, DataFrame); easy reading/writing of files such as CSV and Excel; powerful filtering, sorting, grouping and calculations; easy handling of missing data; fast on large datasets.

Q11 · CBSE 2026 · 90 · Q282 marks

(a) Complete: Series from a NumPy array of 'a', 'b', 'c' with indexes 'first', 'second', 'third'. OR (b) Output of s1=pd.Series([1,2,3],index=['a','b','c']); s2=pd.Series([4,5,6],index=['b','c','d']); print(s1 + s2)

Solution

(a) import numpy as np; arr = np.array(['a','b','c']); s = pd.Series(arr, index=['first','second','third']).
(b) Labels are matched; 'a' and 'd' are in only one Series:

a    NaN
b 6.0
c 8.0
d NaN
dtype: float64
(As printed, the paper's code uses S2 (capital); the board also accepted "NameError" as an answer.)

Q12 · CBSE 2025 · 90 · Q22(B)2 marks

(b) Explain how elements of a Series can be accessed using slicing, with an example.

Solution

For data = pd.Series([10,20,30,40,50], index=['a','b','c','d','e']): positional slicing data[0:3] or data.iloc[0:3] → a, b, c (end excluded); label slicing data['b':'d'] or data.loc['b':'d'] → b, c, d (end included); conditional data[data > 30] → d, e.

Q13 · CBSE 2025 · 90 · Q28(A)2 marks

(a) Rewrite Rohit's code correctly: import pandas / data = [50, 15, 40] / series = pd.series(data, Index=['x','y','z']) / Print(series)

Full step-by-step solution is in the PYQ book (₹99).
Q14 · CBSE 2024 · 90 · Q202 marks

Correct the errors: import Pandas as pd / stud=['Name':'Ramya','Class':11,'House':'Red'] / s=p.Series(s) / print(s)

Full step-by-step solution is in the PYQ book (₹99).
Q15 · CBSE 2024 · 90 · Q222 marks

Output: com=pd.Series([45,12,15,200], index=['mouse','printer','webcam','keyboard']) / print(com[1:3])

Full step-by-step solution is in the PYQ book (₹99).

3 marks: short answer

Q16 · CBSE 2026 · 90 · Q30(A)3 marks

(a) Create and display a Series of days in July, Aug, Sept, Oct (31, 31, 30, 31) with month names as index.

Solution

import pandas as pd
s = pd.Series([31, 31, 30, 31], index=['July', 'Aug', 'Sept', 'Oct'])
# or pd.Series({'July':31, 'Aug':31, 'Sept':30, 'Oct':31})
print(s)

Q17 · CBSE 2025 · 90 · Q30(B)3 marks

(b) Create a Series from an ndarray of 10, 20, 30, 40, 50 with indices 'A'–'E'.

Solution

import pandas as pd
import numpy as np
data = np.array([10, 20, 30, 40, 50]) # or np.arange(10, 60, 10)
s = pd.Series(data, index=['A', 'B', 'C', 'D', 'E'])
print(s)

Get every solution for all chapters

  • Every board question of every chapter, each fully solved the way the board gives marks
  • 3 complete board papers, each followed by its solutions
  • Weightage and most-asked topics for every chapter
  • Instant PDF download, colour and black & white print copies
See real pages (free sample)

Revising the chapter first? Complete Informatics Practices Notes for Class 12 (CBSE 065, 2026-27) →

What you get in the pack

All chapters in this pack

  1. PYQ Ch 1 Pandas Series
  2. PYQ Ch 2 DataFrame: Creation and Attributes
  3. PYQ Ch 3 DataFrame Operations and CSV Files
  4. PYQ Ch 4 Data Visualisation with Matplotlib
  5. PYQ Ch 5 SQL Revision and Single-row Functions
  6. PYQ Ch 6 SQL Aggregates, Grouping and Joins
  7. PYQ Ch 7 Computer Networks
  8. PYQ Ch 8 Introduction to the Internet and Web
  9. PYQ Ch 9 Societal Impacts
  10. Board Paper 2026 Set 90 with Solutions
  11. Board Paper 2025 Set 90 with Solutions
  12. Board Paper 2024 Set 90 with Solutions
PYQ Ch 2 DataFrame: Creation and Attributes →

Prices shown in Indian rupees. Show prices in: ₹ INR · US$ USD