feat: Add Employee Well-being Analysis App & Fix ImportError in Preswald #406
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
β¨ Feature: Employee Well-being Analysis App
π Summary
This PR adds a Preswald-powered web app that analyzes the impact of remote work on employee mental health.
π Features Implemented
β Filters employees with high stress levels using SQL queries
β Interactive slider to filter employees by work hours
β Dynamic tables for real-time data exploration
β Scatter plot visualization (Hours Worked vs. Age)
π Files Added
community_gallery/employee_wellbeing_analysis/hello.py(Preswald app script)community_gallery/employee_wellbeing_analysis/data/Impact_of_Remote_Work_on_Mental_Health.csvcommunity_gallery/employee_wellbeing_analysis/README.md(Project documentation)π§ Challenges & Fixes
Error Encountered:
Screenshot

Fix: Removed
viewfrom the import statement, as it is not available in the current version ofpreswald.Confirmed the issue on macOS (Python 3.11.5) and adjusted the code accordingly.
Validated the fix by running the app successfully after removing
view.π How to Test
git clone https://github.com/StructuredLabs/preswald.git cd preswald/community_gallery/employee_well_being_analysisπ₯ Environment
pip show preswaldto check)β Checklist