utils
hide_streamlit_content()
Hide the footer message and deploy button in Streamlit.
Source code in src/nhssynth/modules/dashboard/utils.py
id_selector(df)
Select an ID from the dataframe to then operate on.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
DataFrame
|
The dataframe to select an ID from. |
required |
Returns:
Type | Description |
---|---|
Series
|
The dataset subset to only the row corresponding to the ID. |
Source code in src/nhssynth/modules/dashboard/utils.py
subset_selector(df)
Select a subset of the dataframe to then operate on.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
DataFrame
|
The dataframe to select a subset of. |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
The subset of the dataframe. |