georad commited on
Commit
4468aa8
·
verified ·
1 Parent(s): 1ba86d2

Update pages/chapter_index.py

Browse files
Files changed (1) hide show
  1. 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
- #st.write("Map internal descriptions to SBS codes in the below chapters* (work in progress)")
7
  #st.image("images/SBS_Chapter_Index.png", use_container_width=True)
8
- st.header("Select specific Chapter for quicker results")
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()