We're thrilled to feature Bibek Kumar in this edition of the Preswald Community Showcase! ๐ Bibek has developed a smart and playful Preswald app that explores the relationship between gaming behavior and academic performance using interactive visualizations and insightful metrics.
๐ Project Overview
๐ Preswald for Behavioral and Academic Insight
This blog illustrates how Preswald can be used to build an app that investigates how gaming habits might impact student grades. Bibek's dashboard is both informative and interactive, helping uncover patterns between game time and academic outcomes.
Project Name: Game and Grade Analysis Dashboard
Built by: Bibek Kumar
Dataset: Game Time vs. Academic Grade Dataset
Live App: Game and Grade Dashboard
๐ Description
Bibek's app provides:
-
๐ฎ A breakdown of game hours versus grade trends
-
๐ Scatter plots showing correlations between playtime and performance
-
๐ข Average grade distributions per game intensity
-
๐ Tools for visual learning with adjustable filters
Built with Preswald, the project helps showcase how data and storytelling can help educators and learners reflect on balance between leisure and study.
๐ Code Snippets
Load Game and Grade Dataset
from preswald import connect, get_df, text, table
connect()
df = get_df('game_grade_data')
text("# Game vs. Grade Dashboard")
text("Visualizing how gaming habits relate to academic performance.")
table(df.head())
Scatter Plot: Game Hours vs Grades
import plotly.express as px
from preswald import plotly
fig = px.scatter(
df,
x='game_hours',
y='grade',
color='student',
title='Game Hours vs Grade',
labels={'game_hours': 'Game Hours', 'grade': 'Academic Grade'}
)
plotly(fig)
Bar Chart: Average Grades by Game Category
df_grouped = df.groupby('game_category')['grade'].mean().reset_index()
fig_bar = px.bar(
df_grouped,
x='game_category',
y='grade',
title='Average Grade by Game Category',
labels={'game_category': 'Game Category', 'grade': 'Average Grade'},
color='grade'
)
plotly(fig_bar)
๐ Key Insights
-
โณ Students who spend more than 5 hours on games tend to show lower average grades
-
๐ง Puzzle and strategy gamers show slightly better performance
-
๐ฎ Shooter and open-world games correlate with higher variance in grades
๐ What is Preswald?
Preswald is an open-source framework for building data apps, dashboards, and internal tools with just Python. It enables developers to turn any analysis script into a shareable app, with UI components like tables, charts, and forms.
Key Features
-
Pure Python interface with interactive output
-
Visualize and filter datasets in real-time
-
Easy deployment and cloud sharing
-
Automatic DAG-based execution for performance
๐ Getting Started
Installation
pip install preswald
Start a Project
preswald init my_project
cd my_project
preswald run
Deploy
preswald deploy --target structured
Huge Thanks to Bibek Kumar!
A huge thank you to Bibek Kumar for showing how Preswald can power projects that mix behavioral analysis and academic insights. Explore more from Bibek:
Want to Contribute?
Got a cool idea for a Preswald app? We'd love to see it! Get started here: https://github.com/StructuredLabs/preswald and get featured in our next Community Showcase.
Happy building! ๐