CBSE CLASS XII – COMPUTER SCIENCE / INFORMATICS
PRACTICES
PYTHON PRACTICAL PROJECT FILE
Project Title: Student Result Analysis Using Python and CSV
Objective:
To analyze student marks stored in a CSV file using Python and represent the result using graphical visualization.
Tools & Libraries Used:
• Python
• CSV File
• Pandas
• Matplotlib
Dataset Used ([Link])
Name Maths Physics Chemistry English
Amit 78 65 70 80
Neha 88 72 85 90
Rahul 45 50 48 60
Priya 92 90 88 95
Karan 60 55 58 62
Python Program
import pandas as pd
import [Link] as plt
data = pd.read_csv("[Link]")
data["Total"] = [Link][:,1:5].sum(axis=1)
data["Average"] = data["Total"] / 4
def result(row):
if (row[1:5] >= 40).all():
return "Pass"
else:
return "Fail"
data["Result"] = [Link](result, axis=1)
print(data)
Sample Output
Name Total Marks Average Marks Result
Amit 293 73.25 Pass
Neha 335 83.75 Pass
Rahul 203 50.75 Pass
Priya 365 91.25 Pass
Karan 235 58.75 Pass
Conclusion:
This project shows how Python can be effectively used to analyze student results using CSV files and visualize
performance for better understanding.