In this video, we build a full Healthcare Intelligence Dashboard from scratch using Python, Streamlit, and Plotly.
This is a beginner-friendly project that covers everything: KPI metric cards, interactive charts, sidebar filters, dark theme UI with glassmorphism, and a 3-tab layout for Patient Intelligence, Financial Intelligence, and Raw Data.
No prior dashboard experience needed. Every line of code is explained step by step.
Part 2: • Healthcare Intelligence Dashboard | Part ...
Introduction and Project Overview: (0:00)
Installing Required Libraries: (6:58)
Importing Libraries (Pandas, Plotly, Streamlit): (7:16)
Configuring Page Title and Icon: (11:08)
Applying CSS for Dark Theme & Glassmorphism: (13:47)
Setting up Plotly Theme (Colors and Chart Settings): (22:49)
Loading and Cleaning the Dataset: (29:58)
Creating Sidebar Filters (Date, Condition, Type): (59:52)
Implementing Filter Logic to Update Data: (1:05:39)
Creating KPI Cards (Metric 1 - Total Billing): (1:29:52)
Creating KPI Cards (Metric 2 & 3 - Admissions & Average Billing): (1:32:47)
Creating KPI Cards (Metric 4 - Average Length of Stay): (1:36:34)
Creating KPI Cards (Metric 5 - Emergency Rate): (1:49:15)
Building Visualizations - Age Group Distribution: (1:56:57)
Building Visualizations - Gender Split: (2:05:34)
Building Visualizations - Medical Conditions & Blood Type: (2:10:48)
Building Financial Intelligence Charts - Total Revenue: (2:29:19)
Building Financial Intelligence Charts - Revenue by Provider: (2:44:40
WHAT YOU WILL BUILD
KPI Cards with delta comparison (current vs previous period)
Patient Intelligence Tab - Age group distribution, gender split, blood type chart, medical conditions
Financial Intelligence Tab - Revenue by condition, insurance provider breakdown
Raw Data Tab - Filterable, sortable data table
Sidebar filters - Date range, medical condition, admission type, insurance, gender, age group
Dark theme UI - Animated gradient background, glassmorphism cards, pill-style tabs
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT YOU WILL LEARN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to structure a multi-tab Streamlit dashboard
How to build KPI cards with period-over-period comparison
How to use Plotly Express for bar charts, pie charts, and donut charts
How to apply custom CSS in Streamlit using st.markdown
How to use @st.cache_data for performance optimization
How to create dynamic sidebar filters that update all charts
TOOLS USED
Python 3.10+
Streamlit
Plotly Express
Pandas
Dataset: Healthcare CSV (link below)
LINKS
Source Code (GitHub):
https://github.com/Aman-gaur-1/Stream...
Dataset Download:
https://docs.google.com/spreadsheets/...
AI CSS Prompts (Copy & Use in ChatGPT / Claude)
━━━━━━━━━━━━━━━━━━━━━━
PROMPT 1 — Dark Theme CSS
━━━━━━━━━━━━━━━━━━━━━━
Create a dark theme CSS for a Streamlit dashboard with these requirements:
Dark navy background (#030712)
Animated radial gradient mesh background (teal, sky blue, violet glows)
Google Fonts: Syne (headings) + DM Sans (body)
Metric cards with glassmorphism effect, teal top-border glow, hover lift animation
Sidebar with dark gradient background
Sidebar expanders with rounded corners and hover glow
All inputs with dark background and teal focus glow
Multiselect chips with teal color
Tabs as pill-style buttons, active tab has teal gradient glow
Buttons with teal-to-sky gradient, rounded pill shape
Custom teal scrollbar
FadeUp entrance animation on page load
Color palette: teal #00d4aa, sky #38bdf8, rose #fb7185
Return only the CSS inside a st.markdown block. No explanation.
━━━━━━━━━━━━━━━━━━━━━━
PROMPT 2 — Header Block
━━━━━━━━━━━━━━━━━━━━━━
Create a Streamlit HTML header block using st.markdown with:
H1 title with gradient text: teal #00d4aa to sky blue #38bdf8 to violet #a78bfa - Font: Syne, size 2.3rem, weight 800
Subtitle below in muted white rgba(255,255,255,.40)
Title: Healthcare Intelligence Dashboard
Subtitle: Real-time patient & financial analytics
Return only the st.markdown() block.
#python #pythonprogramming #datascience #datavisualization #dataanalytics