Update pages/chapter_index.py
Browse files- pages/chapter_index.py +3 -4
pages/chapter_index.py
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
-
#import numpy as np
|
4 |
|
5 |
#st.title("📘SBS mapper")
|
6 |
-
|
7 |
#st.image("images/SBS_Chapter_Index.png", use_container_width=True)
|
8 |
-
st.
|
9 |
df_chapters = pd.read_csv("SBS_V2_Chapter_Index.csv")
|
10 |
df_chapters.iloc[25] = {"Chapter": "ALL", "Chapter title": "ALL CHAPTERS (will take more time)", "Blocks": "Total", "No. Codes": 10081}
|
11 |
-
st.dataframe(df_chapters, hide_index=True)
|
12 |
|
13 |
def dataframe_with_selections(df_chapters: pd.DataFrame, init_value: bool = False) -> pd.DataFrame:
|
14 |
df_with_selections = df_chapters.copy()
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
|
|
3 |
|
4 |
#st.title("📘SBS mapper")
|
5 |
+
st.header("Map internal descriptions to SBS codes (work in progress)*")
|
6 |
#st.image("images/SBS_Chapter_Index.png", use_container_width=True)
|
7 |
+
st.subheader("Select specific Chapter for quicker results")
|
8 |
df_chapters = pd.read_csv("SBS_V2_Chapter_Index.csv")
|
9 |
df_chapters.iloc[25] = {"Chapter": "ALL", "Chapter title": "ALL CHAPTERS (will take more time)", "Blocks": "Total", "No. Codes": 10081}
|
10 |
+
#st.dataframe(df_chapters, hide_index=True) # redundant, as dataframe will be displayed by below function
|
11 |
|
12 |
def dataframe_with_selections(df_chapters: pd.DataFrame, init_value: bool = False) -> pd.DataFrame:
|
13 |
df_with_selections = df_chapters.copy()
|