├── README.md ├── dataset ├── Objectiev 4 fig 4.png ├── Objective 2 fig 2.png ├── Objective 5 fig 5.png ├── Obkective 3 fig 3.png ├── objective 1 fig 1.png ├── objective 4.py ├── objective 3.py ├── objective 5.py ├── objective 2.py └── objective 1.py /README.md: -------------------------------------------------------------------------------- 1 | # python-dashboard -------------------------------------------------------------------------------- /dataset: -------------------------------------------------------------------------------- 1 | _Kids_In_Motion__Playground_Programming__2016_to_2021 (2) - Copy.csv 2 | -------------------------------------------------------------------------------- /Objectiev 4 fig 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Saibhargav2005/python-dashboard/HEAD/Objectiev 4 fig 4.png -------------------------------------------------------------------------------- /Objective 2 fig 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Saibhargav2005/python-dashboard/HEAD/Objective 2 fig 2.png -------------------------------------------------------------------------------- /Objective 5 fig 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Saibhargav2005/python-dashboard/HEAD/Objective 5 fig 5.png -------------------------------------------------------------------------------- /Obkective 3 fig 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Saibhargav2005/python-dashboard/HEAD/Obkective 3 fig 3.png -------------------------------------------------------------------------------- /objective 1 fig 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Saibhargav2005/python-dashboard/HEAD/objective 1 fig 1.png -------------------------------------------------------------------------------- /objective 4.py: -------------------------------------------------------------------------------- 1 | # Objective 4: Number of Programs Offered Per Year 2 | data.groupby('Year').size().plot( 3 | kind='line', marker='o', color='red', figsize=(10, 6), title="Number of Programs Offered Each Year" 4 | ) 5 | plt.xlabel("Year") 6 | plt.ylabel("Number of Programs") 7 | plt.grid(True) 8 | plt.tight_layout() 9 | plt.show() 10 | -------------------------------------------------------------------------------- /objective 3.py: -------------------------------------------------------------------------------- 1 | # Objective 3: Average Attendance by Day of Week 2 | day_columns = [f"{day}'s Attendance" for day in ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']] 3 | data[day_columns].mean().plot( 4 | kind='bar', color='purple', figsize=(10, 6), title="Average Attendance by Day of the Week" 5 | ) 6 | plt.ylabel("Average Attendance") 7 | plt.xticks(rotation=45) 8 | plt.tight_layout() 9 | plt.show() 10 | -------------------------------------------------------------------------------- /objective 5.py: -------------------------------------------------------------------------------- 1 | # Objective 5: Program Duration vs Attendance 2 | data['Program_Duration_Days'] = (data['End_Date'] - data['Start_Date']).dt.days 3 | 4 | plt.figure(figsize=(10, 6)) 5 | plt.scatter(data['Program_Duration_Days'], data['Total Attendance'], alpha=0.6, color='teal') 6 | plt.title("Program Duration vs Total Attendance") 7 | plt.xlabel("Program Duration (in Days)") 8 | plt.ylabel("Total Attendance") 9 | plt.grid(True) 10 | plt.tight_layout() 11 | plt.show() 12 | -------------------------------------------------------------------------------- /objective 2.py: -------------------------------------------------------------------------------- 1 | # Objective 2: Average Monthly Attendance Trend 2 | data.groupby('Month')['Total Attendance'].mean().plot( 3 | kind='bar', color='orange', figsize=(10, 6), title="Average Monthly Attendance" 4 | ) 5 | 6 | plt.xlabel("Month") 7 | plt.ylabel("Average Attendance") 8 | plt.xticks( 9 | ticks=range(12), 10 | labels=['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 11 | rotation=45 12 | ) 13 | plt.tight_layout() 14 | plt.show() 15 | -------------------------------------------------------------------------------- /objective 1.py: -------------------------------------------------------------------------------- 1 | 2 | import numpy as np 3 | import pandas as pd 4 | import matplotlib.pyplot as plt 5 | 6 | # Load and preprocess data 7 | path = "C:\\Users\\Bhargav sai\\Downloads\\_Kids_In_Motion__Playground_Programming__2016_to_2021 (2).csv" 8 | data = pd.read_csv(path) 9 | 10 | # Convert dates 11 | data['Start_Date'] = pd.to_datetime(data['Week Start Date']) 12 | data['End_Date'] = pd.to_datetime(data['Week End date']) 13 | 14 | # Extract year and month 15 | data['Year'] = data['Start_Date'].dt.year 16 | data['Month'] = data['Start_Date'].dt.month 17 | 18 | # Objective 1: Total Attendance Per Year 19 | data.groupby('Year')['Total Attendance'].sum().plot( 20 | kind='line', marker='o', color='blue', figsize=(10, 6), title="Total Attendance Per Year" 21 | ) 22 | plt.xlabel("Year") 23 | plt.ylabel("Total Attendance") 24 | plt.grid(True) 25 | plt.tight_layout() 26 | plt.show() 27 | --------------------------------------------------------------------------------