MCPcopy Create free account
hub / github.com/Hrishikesh332/HCDS-EPD / create_region_selector

Function create_region_selector

config.py:3–18  ·  view source on GitHub ↗
(df)

Source from the content-addressed store, hash-verified

1import streamlit as st
2
3def create_region_selector(df):
4 regions = sorted(df['REGIONAL_OFFICE_NAME'].unique())
5
6 col1, col2 = st.columns([3, 1])
7
8 with col1:
9 selected_region = st.selectbox(
10 "Select NHS Region",
11 regions,
12 key="region_selector"
13 )
14
15 with col2:
16 st.metric("Total Regions", len(regions))
17
18 return selected_region

Callers 2

dashboardFunction · 0.90
forecastingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected