★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
CBSE Class 12 · Informatics Practices 065 · Project 2026-27
This Class 12 IP project with source code is called Shelf Report. It reads two CSV files kept by a school library, answers three questions with pandas, draws one chart of each syllabus type and says what the library should do next. All 145 lines are here, with the run, the tests and the pages of the report.
Live one to one · one project, start to finish · run in pandas 2.3 and Matplotlib 3.11 · your days, your timing
Start here
A project is easy to write about when the pandas and charts behind it are yours. The IP course teaches both in syllabus order, and the two beside it take data and databases further.

The subject / 065
Both years of IP, with the project, the practical file and the viva prepared along the way.
Open the course →
Real data / pandas
Cleaning messy files, choosing the right chart and telling a story with data: the skills that make a project report read well.
Open the course →
Database route / SQL
For students who would rather keep the project data in a database file than in CSV.
Open the course →Ans. The short version
A Class 12 IP project with source code needs a real question, data in a CSV or database file, a Python program that analyses it and charts that show the answer. The project is worth 5 of the 30 practical marks in CBSE 065, done alone or in a group of 2 to 3. This page gives one complete original project, Shelf Report: two library CSV files, 145 lines of pandas and Matplotlib, three charts, a test table, report text and viva questions. Modern Age Coders guides students through their own project one to one, and a priority demo lets you try a class first.
Q1. What is asked for?
It should show a useful application built around a real problem, with data that is analysed in Python and shown in charts. The 2026-27 syllabus gives the aim in a few lines and leaves the layout of the file to the school.
| What the 065 syllabus says, in short | How Shelf Report answers it |
|---|---|
| Find a real problem by visiting a shop, community or other organisation | A school librarian has money for a few new books and no figures to decide with |
| Ask how data is generated, stored and managed there | The issue register is copied into issues.csv and the accession register into books.csv |
| Take data from a CSV or database file, analyse it with Python libraries and make charts | pandas for the tables; a line plot, a bar graph and a histogram from Matplotlib |
| Use ideas from Class XI and Class XII | Lists, loops and conditions from XI; Series, DataFrames, CSV files and plots from XII |
| Work alone or in a group of 2 to 3, starting at least 6 months before submission | The work splits cleanly into data, analysis and report (see the last section) |
| No plagiarism; every source of data or images is named | The report has a sources page, filled in below |
CBSE does not publish how the 5 marks are divided. The viva is another 5, and a project you built yourself is the easiest thing in the room to talk about. Practicals are scheduled from 1 January 2027 (winter-bound schools: 9 November to 19 December 2026), and your school sets the submission day.
A choice made on purpose. User-defined functions, exception handling and joining DataFrames are not in the IP syllabus, so this program uses none of them. Every line can be explained with what Class 11 and 12 IP teaches.
Q2. Where does the data come from?
Two small files hold everything: one row per title, and one row per time a book was borrowed. The records here were made up for this page, so collect your own from a real register and say in the report who allowed it.
book_no,title,category,copies B01,The Clay Cart,Fiction,4 B02,Letters from Ladakh,Fiction,3 B03,Night Train Mystery,Fiction,2 B04,Planets Up Close,Science,3 B05,Kitchen Chemistry,Science,2 B06,How Bridges Stand,Science,2 B07,Panda Squad 1,Comics,1 B08,Panda Squad 2,Comics,2 B09,Student Atlas,Reference,6 B10,Word Origins,Reference,4 B11,Kavita Sangrah,Hindi,3 B12,Lok Kathayen,Hindi,3
book_no is the index of this table, so each code appears once.
| Column | Type in pandas | Meaning |
|---|---|---|
book_no | object | Code on the spine; links the two files |
category | object | Shelf: Fiction, Science, Comics, Reference, Hindi |
copies | int64 | How many the library owns |
issue_no | int64 | Serial number of the borrowing |
section, month | object | Who borrowed, and when |
days | float64 | Days kept; blank means not returned yet |
Why float for days? Two rows are blank, pandas stores a blank as NaN, and NaN forces the whole column to float.
issue_no,book_no,section,month,days 101,B05,C,Jul,14 102,B02,A,Jul,12 103,B07,C,Jul,19 104,B05,B,Jul,14 105,B08,C,Jul,22 106,B07,C,Jul,14 107,B02,B,Jul,10 108,B03,B,Aug,14 109,B07,A,Aug,15 110,B07,B,Aug,14 111,B09,A,Aug,11 112,B04,A,Aug,6 113,B11,C,Aug,17 114,B03,A,Aug,9 115,B04,B,Aug,7 116,B01,B,Aug,15 117,B08,A,Sep,7 118,B11,C,Sep,13 119,B09,B,Sep,9 120,B01,A,Sep,12
121,B08,B,Oct,11 122,B05,A,Oct,7 123,B01,C,Oct,15 124,B01,B,Oct,12 125,B03,A,Oct,8 126,B04,C,Nov,12 127,B01,A,Nov,16 128,B02,B,Nov,10 129,B07,C,Nov,11 130,B06,A,Nov,12 131,B06,A,Nov,8 132,B08,C,Nov,25 133,B12,B,Nov,12 134,B03,A,Nov,9 135,B04,B,Nov,16 136,B08,C,Dec,14 137,B12,A,Dec, 138,B08,B,Dec,12 139,B10,B,Dec, 140,B08,B,Dec,11
Records 137 and 139 end with a comma: those two books are still out.
The three questions. Which category is most in demand for the copies we own? In which months is the library busiest? Who keeps books longer than 14 days? A project with written questions is easier to finish, because you know when you are done.
Q3. What is the code?
Type the five parts into one file, in order, and keep it in the same folder as the two CSV files. Build it in this order too: each part can be run and checked before the next is added.
The program begins by reading both files and giving every issue record a category, which lives in the other file.
# shelf_report.py
# Shelf Report: what does our school library need more of?
import pandas as pd
import matplotlib.pyplot as plt
LIMIT = 14 # days allowed
MONTHS = ["Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
SECTIONS = ["A", "B", "C"]
books = pd.read_csv("books.csv", index_col="book_no")
issues = pd.read_csv("issues.csv")
# look up the category of every issued book
category = []
for number in issues["book_no"]:
category.append(books.loc[number, "category"])
issues["category"] = category
print("SHELF REPORT:", len(books), "books,",
len(issues), "issue records")
index_col="book_no" makes the code the row label, so books.loc[number, "category"] is a direct look-up.The figures are worked out again at the top of the loop, so an issue or a return changes the next report at once.
choice = ""
while choice != "0":
# fresh figures before every menu
count = issues.groupby("category")["issue_no"].count()
copies = books.groupby("category")["copies"].sum()
demand = pd.DataFrame({"issues": count, "copies": copies})
ratio = demand["issues"] / demand["copies"]
demand["per_copy"] = round(ratio, 2)
demand = demand.sort_values("per_copy", ascending=False)
monthly = []
for m in MONTHS:
monthly.append(len(issues[issues["month"] == m]))
late = issues[issues["days"] > LIMIT]
not_back = issues[issues["days"].isnull()]
print()
print("1 Find a book 2 Issue a book 3 Return a book")
print("4 Demand table 5 Late returns 6 Draw charts")
print("7 Save the report 0 Exit")
choice = input("Your choice: ")
groupby() counts issues and adds up copies; the two Series share category labels, so pd.DataFrame lines them up by itself.per_copy is the idea of the project. Twelve issues from 3 copies is heavier use than twelve from 9.issues["days"] > LIMIT, so books still out are not called late; isnull() collects those separately.These three choices keep the data up to date, and they are where wrong typing must be stopped.
if choice == "1":
word = input("Word in the title: ").lower()
found = 0
for number, row in books.iterrows():
if word in row["title"].lower():
out = len(not_back[not_back["book_no"] == number])
print(number, row["title"], "| on shelf:",
row["copies"] - out, "of", row["copies"])
found += 1
print("Titles found:", found)
elif choice == "2":
number = input("Book number : ").upper()
section = input("Section : ").upper()
month = input("Month (Jul) : ").capitalize()
out = len(not_back[not_back["book_no"] == number])
if number not in books.index:
print("No such book number")
elif section not in SECTIONS or month not in MONTHS:
print("Section or month is not valid")
elif out >= books.loc[number, "copies"]:
print("All copies are out")
else:
new_no = issues["issue_no"].max() + 1
kind = books.loc[number, "category"]
issues.loc[len(issues)] = [new_no, number, section,
month, float("nan"), kind]
plain = issues.drop("category", axis=1)
plain.to_csv("issues.csv", index=False)
print("Issued. Issue number", new_no)
elif choice == "3":
text = input("Issue number: ")
days = input("Days kept : ")
if not (text.isdigit() and days.isdigit()):
print("Type whole numbers only")
elif int(text) not in list(not_back["issue_no"]):
print("That issue number is not pending")
else:
row = issues[issues["issue_no"] == int(text)].index[0]
issues.loc[row, "days"] = int(days)
plain = issues.drop("category", axis=1)
plain.to_csv("issues.csv", index=False)
if int(days) > LIMIT:
print("Returned,", int(days) - LIMIT, "days late")
else:
print("Returned in time")
upper() and capitalize() accept b07 or dec and store B07 and Dec.drop("category", axis=1) before saving keeps the CSV in its original five columns.Choice 4 answers the buying question and choice 5 the late question.
elif choice == "4":
print(demand)
print("Buy first:", demand.index[0])
elif choice == "5":
print(late[["issue_no", "book_no", "section", "days"]])
for s in SECTIONS:
taken = len(issues[issues["section"] == s])
over = len(late[late["section"] == s])
print("Section", s, ":", over, "late of", taken)
print("Average days kept:", round(issues["days"].mean(), 1))
print("Not yet returned:", list(not_back["issue_no"]))
demand is sorted, demand.index[0] is the category to buy first.mean() skips the two blanks and divides by 38.The last part draws one chart of each kind in the syllabus, saves two CSV reports and ends the loop.
elif choice == "6":
plt.figure(figsize=(8, 5))
plt.plot(MONTHS, monthly, color="darkblue", marker="o")
plt.title("Books issued each month")
plt.xlabel("Month")
plt.ylabel("Number of issues")
plt.ylim(0, 12)
plt.savefig("01-issues-by-month.png", dpi=150)
plt.show()
plt.figure(figsize=(8, 5))
plt.bar(demand.index, demand["per_copy"], width=0.6,
color="seagreen")
plt.title("Issues for each copy owned, by category")
plt.xlabel("Category")
plt.ylabel("Issues per copy")
plt.savefig("02-issues-per-copy.png", dpi=150)
plt.show()
back = issues[issues["days"] > 0] # leaves out blanks
plt.figure(figsize=(8, 5))
plt.hist(back["days"], bins=range(0, 31, 3),
color="tan", edgecolor="black")
plt.title("How long books are kept")
plt.xlabel("Days kept")
plt.ylabel("Number of issues")
plt.xticks(range(0, 31, 3))
plt.savefig("03-days-kept.png", dpi=150)
plt.show()
print("Three charts saved")
elif choice == "7":
demand.to_csv("demand_report.csv")
late.to_csv("late_report.csv", index=False)
print("Saved demand_report.csv and late_report.csv")
elif choice != "0":
print("Please type a number from 0 to 7")
print("Goodbye")
savefig() comes before show(); after the window is closed there may be nothing left to save.Q4. What does it show?
The program says buy comics first, watch section C, and expect November to be the busiest month. Below is the screen of the first run, then the charts it saved.
SHELF REPORT: 12 books, 40 issue records
1 Find a book 2 Issue a book 3 Return a book
4 Demand table 5 Late returns 6 Draw charts
7 Save the report 0 Exit
Your choice: 1
Word in the title: panda
B07 Panda Squad 1 | on shelf: 1 of 1
B08 Panda Squad 2 | on shelf: 2 of 2
Titles found: 2
Your choice: 4
issues copies per_copy
category
Comics 12 3 4.00
Fiction 12 9 1.33
Science 9 7 1.29
Hindi 4 6 0.67
Reference 3 10 0.30
Buy first: Comics
Your choice: 5
issue_no book_no section days
2 103 B07 C 19.0
4 105 B08 C 22.0
8 109 B07 A 15.0
12 113 B11 C 17.0
15 116 B01 B 15.0
22 123 B01 C 15.0
26 127 B01 A 16.0
31 132 B08 C 25.0
34 135 B04 B 16.0
Section A : 2 late of 14
Section B : 2 late of 15
Section C : 5 late of 11
Average days kept: 12.5
Not yet returned: [137, 139]
Your choice: 6
Three charts saved
Your choice: 7
Saved demand_report.csv and late_report.csv
Your choice: 0
Goodbye
The menu is printed before every choice. It is kept once here to save space.

Line plot of books issued each month: 7 in July, 9 in August, 4 in September, 5 in October, 10 in November, 5 in December.

Bar graph of issues per copy owned: Comics 4.0, Fiction 1.33, Science 1.29, Hindi 0.67, Reference 0.3.

Histogram of days kept in bins of three: 6 books for 6 to 8 days, 9 for 9 to 11, 14 for 12 to 14, then 6, 1, 1 and 1.
Fiction and Comics were both issued 12 times between July and December, yet the library owns 9 copies of fiction and only 3 of comics. Each comic copy was borrowed 4 times and each fiction copy 1.33 times. Reference has 10 copies and 3 issues.
Of 38 returned books, 9 came back after the limit of 14 days. Section C accounts for 5 of them out of 11 borrowings, against 2 of 14 in A and 2 of 15 in B.
Suggestion to the librarian: buy two more comic copies before any other title, and remind section C in the second week of a loan.
Limits of this result: forty records from one term are few. A reference book is also read inside the library, and that use is not in the register, so a low bar does not prove it is unwanted.
The paragraph on limits is worth as much thought as the chart. To compare chart types on simpler data first, see Matplotlib charts for Class 12 IP.
Q5. How is it written up?
Twelve short parts are enough. Use your school’s order if it has one; where a page needs wording, adapt ours to your own data.
Problem. The school library buys books every year on the advice of whoever asks first. This project uses six months of its issue register to find which category is short of copies, when the library is busiest and which section returns books late.
Scope. The program covers one library, one term and books lent for use outside it. It does not handle fines, reservations or reading inside the library.
Sources. Issue register and accession register of [school], July to December, used with the permission of [librarian]; student names were left out. Python, pandas and Matplotlib documentation; the IP textbook. [Add every site you read.]
| Test | What was typed | What the program did |
|---|---|---|
| 1 | Issue b07, section c, dec | Issued. Issue number 141 |
| 2 | Issue b07 again, section a | All copies are out (one copy owned) |
| 3 | Issue b99 | No such book number |
| 4 | Issue b01, section d | Section or month is not valid |
| 5 | Return 141, days "ten" | Type whole numbers only |
| 6 | Return 141, days 17 | Returned, 3 days late |
| 7 | Return 137, days 9 | Returned in time |
| 8 | Return 137 a second time | That issue number is not pending |
| 9 | Choice 9 | Please type a number from 0 to 7 |
| 10 | Find "xyz" | Titles found: 0 |
| 11 | Run with books.csv missing | Stops with FileNotFoundError. Listed under limits |
| 12 | A record whose book_no is not in books.csv | Stops with KeyError 'B55'. Listed under limits |
Tests 11 and 12 fail, and they stay in the table. An honest failed test with a reason reads far better than ten tests that could never go wrong.
Q6. What might they ask?
Say each answer aloud before opening it. When you build your own project, write twelve questions like these about your own code.
groupby("category") on it would raise a KeyError.demand?
count, so its issues and per_copy become NaN. NaN is placed last when sorted.float("nan") for a new issue?
issues.loc[len(issues)] = [...] do?
General questions on pandas, SQL, networks and society are in Class 12 IP viva questions, and the file examined along with the project is the Class 12 IP practical file.
Q7. How do you make your own?
Keep the skeleton, two files, a ratio, three charts, a finding, and change the place, the data and the questions. A project handed in unchanged is one you cannot defend, and the syllabus warns against copying.
| If your place is | File one | File two | The ratio that gives a finding |
|---|---|---|---|
| A school library, managed day by day | Members: number, class, limit | Loans: member, book, date out, date in | Loans per member, class by class |
| The sick room | Medicines: name, stock, expiry month | Visits: class, complaint, month | Visits per 100 students in each class |
| A cycle repair shop | Parts: name, cost, stock | Jobs: part, month, minutes | Minutes per job for each kind of part |
| A housing society | Flats: block, residents | Water meter readings by month | Litres per resident per day |
More choices, each with columns, charts and a difficulty, are on Class 12 IP project topics. If the data should live in MySQL, design the two files as tables with a primary key each and practise the join on IP SQL questions.
One person owns the data and its permissions, one the analysis in parts 2 and 4, one the charts and report. Then swap, and explain each other’s part.
Drop choices 1 to 3 and keep the analysis: load, demand table, late table, three charts. A small program you understand beats a long one you do not.
Export your report to PDF after the last test, not before. A PDF of this page, made with your browser’s print option, is for reading and not for submission.
One to one, at your own timing
The priority demo is a paid full class at a slot of your choosing; a written skill report comes after it, and the fee is taken off your first month if you enrol. You can take the free demo class instead. Enrolled students work personalised one to one, paying monthly, without any admission fee.
Before you enrol · Try a class
a full live class of about 45 to 60 minutes
The classes · Choose your own timing
₹4,999
per month, 4 private classes, fully flexible timingtwo private classes a week, at a time set with you
We do not hand over finished projects. The student writes the code and the report, and the teacher keeps asking why. The fee for a month appears above in your own currency, and you may stop at any month end.
Away from India
A student in Doha or Singapore can use data from a local shop, club or school in exactly the same way. Meetings are set by the family’s clock.
| Where you live | Time difference | Usual class window, local time | Format |
|---|---|---|---|
| India every Indian city | Indian time | Any time you choose | Personalised 1-on-1 |
| UAE and Oman Dubai, Abu Dhabi, Sharjah, Muscat | 1 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Saudi Arabia, Qatar, Kuwait, Bahrain Riyadh, Jeddah, Dammam, Doha, Kuwait City, Manama | 2 h 30 min behind India | 3:00 PM to 9:00 PM | Personalised 1-on-1 |
| Nepal Kathmandu | 15 min ahead of India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Ethiopia and East Africa Addis Ababa and East Africa Time | 2 h 30 min behind India | 4:30 PM to 9:00 PM | Personalised 1-on-1 |
| Singapore and Malaysia Singapore, Kuala Lumpur | 2 h 30 min ahead of India | 3:30 PM to 9:00 PM | Personalised 1-on-1 |
The submission date and group size rules of your own school come first, so bring them to the demo. For the rest of the syllabus see Class 12 CBSE computer classes.
What families say
Real reviews from real families. We neither write nor commission them.
★★★★★
"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."
Ria Mukherjee
Parent
★★★★★
"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."
Samriddha Mondal
Student
★★★★★
"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."
Vansh Agarwal
Student
★★★★★
"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."
Sonam Oswal
Parent of Dhairya
★★★★★
"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."
Sonu Goyal
Parent
★★★★★
"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."
Ritu Kedia
Parent
The rest of the Class 12 series
Every page in the CBSE Class 12 Informatics Practices series, grouped by what you need.
CBSE Class 12 Computer Science (083): Class 12 CS viva questions Class 12 CS sample paper practice Class 12 CS project with source code Class 12 CS important questions
CBSE Class 12 Information Technology (802): IT 802 practical and project file IT 802 Java notes and programs IT 802 notes
CBSE Class 11 CS, IP and AI: Class 11 CS practical file Class 11 IP practical file CS or IP in Class 11
ISC Computer Science (868): ISC Class 12 CS syllabus 2027 ISC Class 12 CS practice paper ISC Class 12 practical questions solved ISC Boolean algebra and K-maps
Program lists with output: Class 12 practical file programs Python programs for Class 11 CS and IP
IP project questions
The project carries 5 marks out of the 30 for the practical in CBSE Informatics Practices (065), 2026-27. The viva voce carries another 5, and questions on the project can be part of it. CBSE does not publish a further split of the 5 project marks.
A common order is cover, certificate, acknowledgement, contents, problem, software used, data description, source code, output and charts, test table, findings with limits, and sources. CBSE does not fix a layout, so use the one your school gives.
Yes. The syllabus says the learner can take data stored in a csv or database file, analyse it with Python libraries and make charts. A pair of well-designed CSV files is enough, and it avoids setting up a server on the day you show the project.
No. The 2026-27 project paragraph names a csv or database file. Use MySQL if your data changes often or your school asks for it. SQL is tested separately in the practical for 7 marks whichever way you store the project data.
Yes. The syllabus allows individual work or a group of 2 to 3 students. If you are in a group, write down which part each member made and make sure all of you can explain the whole program, since any of you can be asked about any line.
Line plot, bar graph and histogram are the types in the syllabus, so using each once shows full coverage. Choose by the data: a line for values over time, bars for separate categories, a histogram for how numbers are spread. Give each a title and axis labels.
Keep one CSV for books or members and one for loans, then go beyond storing records: work out issues per copy, late returns by section and the busiest month, as Shelf Report does on this page. A library project with a finding stands out from one that only adds and deletes records.
This page has the full source code, data files, output and report wording, and your browser can save it as a PDF for reference. Build your own version from it with new data, since the syllabus asks teachers to act against plagiarism and you will be questioned on every part.
The syllabus says at least six months before the submission deadline. If you are later than that, choose a small question with data you can collect this week, agree it with your teacher and write the program before the report.
No. User-defined functions are not in the Class 11 or 12 IP syllabus. A menu in a while loop with if and elif, as on this page, is enough. If you already know functions you may use them, but be ready to explain them.
No, and we would not do you a favour by it, because you are the one questioned. In personalised one to one classes you choose the topic, type the code and write the report while a teacher guides. Start with the priority demo or the free demo class.
Start
One shop, one club or one register at school is enough to begin. In the first class we turn it into two or three questions and a short CSV, and find out whether the data can answer them.
If the date is near, take the priority demo: your slot, a whole class on your own project, a report in writing, and the fee counted towards the first month when you join.
WhatsApp us · +91 91233 66161 · connect@modernagecoders.com
Every class is live video. The form requests a callback and reserves nothing.
A full live class of about 45 to 60 minutes at a slot you pick, with a written skill report and learning roadmap on WhatsApp afterwards. The fee is adjusted against your first month if you enrol.
Book a priority demo