Student Marks Analyzer with Python and Matplotlib

Day 11 : Mini Project: Student Marks Analyzer using Python 🧮 I recently built a simple yet insightful project that analyzes and visualizes student marks data using Pandas and Matplotlib. This project helped me understand how to handle CSV datasets, perform data analysis, and create visual plots for better insights. 📊 🔹 Technologies Used: Python, Pandas, Matplotlib 🔹 Key Steps: Loaded and cleaned student marks data from a CSV file Calculated subject-wise averages Visualized data using bar charts, histograms, and pie charts Interpreted results to identify overall performance trends 🎯 Outcome: Gained hands-on experience in data handling, analysis, and visualization — a small step toward mastering Data Science and Analytics. #Python #Pandas #Matplotlib #DataVisualization #MiniProject #StudentMarksAnalyzer #Programming #LearningByDoing #DataScienceJourney SOURCE CODE : import matplotlib.pyplot as plt print("First 5 Records:") print(data.head()) print("\n Dataset Information:") print(data.info()) print("\n Summary Statistics:") print(data.describe()) subjects = ['Maths', 'Physics', 'Chemistry'] average_marks = [data['Maths'].mean(), data['Physics'].mean(), data['Chemistry'].mean()] plt.figure(figsize=(7,5)) plt.bar(subjects, average_marks, color=['skyblue', 'orange', 'green']) plt.title('Average Marks of Students') plt.xlabel('Subjects') plt.ylabel('Average Marks') plt.grid(axis='y', linestyle='--', alpha=0.7) plt.show() plt.figure(figsize=(10,5)) plt.hist([data['Maths'], data['Physics'], data['Chemistry']], bins=10, label=['Maths', 'Physics', 'Chemistry'], alpha=0.7) plt.title('Marks Distribution by Subject') plt.xlabel('Marks Range') plt.ylabel('Number of Students') plt.legend() plt.show() if 'Result' in data.columns: result_counts = data['Result'].value_counts() plt.figure(figsize=(5,5)) plt.pie(result_counts, labels=result_counts.index, autopct='%1.1f%%', startangle=140, colors=['gold', 'lightcoral']) plt.title('Result Analysis (Pass/Fail)') plt.show() print("\n🎯 Analysis Complete!")

To view or add a comment, sign in

Explore content categories