Iām trying to create an uploader file that works as input for all my tabs.
please help me how to do it.
sample code:
selected = option_menu(None, [āHomeā, āUploadā, āTasksā, āSettingsā],
icons=[āhouseā, ācloud-uploadā, ālist-taskā, āgearā],
menu_icon=ācastā, default_index=0, orientation=āhorizontalā)
selected
if selected == āHomeā:
st.title(f"You have selected {selected}ā)
if selected == āUploadā:
st.title(f"You have selected {selected}ā)
with st.header(ā1. Upload your CSV dataā):
uploaded_file = st.file_uploader(āUpload your input fileā, type=[ācsvā])
if selected == āTasksā:
#st.title(f"You have selected {selected}")
### Read csv
iris = pd.read_table(uploaded_file , sep=ā,ā, header=0)