Sub topic 2
Find topic frequency and year-wise trends
This chapter assumes you have a tagged file named pyq.csv, with one row per question and columns for year, subject, topic, and format. You should know basic Python and how to read a CSV file. The code uses only the standard library.
Count topic frequency
Topic frequency is the number of questions on each topic across your papers. Count it per year and across all years. A topic that appears in every paper is a stable area. A topic that appears once in five years is a weak signal.
import csv
from collections import Counter, defaultdict
with open("pyq.csv", newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
per_year = defaultdict(Counter)
for r in rows:
per_year[r["year"]][r["topic"]] += 1
for year in sorted(per_year):
print(year, per_year[year].most_common(3))Read year-wise trends
Compare shares, not raw counts, because papers can differ in length. A topic's share for a year is its question count divided by that year's total. A trend needs at least three years of data.
Recognise recurring question formats
Formats such as "which of the following statements is correct" or "match the list" repeat across years. Tag the format column and count it the same way as topics. A recurring format tells you which skill to practise, even when the topic changes.
Separate static, Maharashtra-specific and current-affairs questions
- Static: facts that change slowly, such as constitutional articles or river systems. Their count should stay steady.
- Maharashtra-specific: questions on the state's geography, history, or institutions. Tag them separately.
- Current affairs: events from the past year. Their topics change each year, so do not expect the trend to carry forward.
Rate question difficulty
Add a difficulty column with a rating from 1 (easy) to 3 (hard). Base it on how often students in your practice group got the question right, or on your judgement after a mock test. Average the ratings per topic. High-frequency topics with low difficulty are the first priority.
Exercise
A topic has 6 questions in a 2024 paper of 100 questions and 9 questions in a 2025 paper of 120 questions. Did its share rise?
Show answer
No. Its share fell from 6% (6/100) to 7.5% (9/120), which is a rise of 1.5 points. Read this as a rise in share, since the count alone (6 to 9) overstates it. Check whether the 2025 jump holds in another year before you change priorities.