Streamlit-pandas missing some columns

Hi,

I’m having a problem with Streamlit-pandas.

I followed the instructions on GitHub - wjbmattingly/streamlit-pandas, and I was able to successfully display the widgets in the sidebar. However, the input fields for some columns are not displayed.

I was able to make the “missing_column” column a multiselect by using the following code:

create_data = { "missing_column": "multiselect" }

I want to be able to specify conditions using a slider for the columns with integer data. Is there any way to do this?

Hi @kawase117

You can use conditional statements (if, else, ec.) to perform specific tasks depending on which value was specified in the slider widget.

For example,

select_value = st.slider('Select a value', 0.0, 100.0, 50.0)
if select_value <50:
   st.write('Value is less than 50')
else:
   st.write('Value is greater than 50')

Hope this helps!