St.text_input shows “None” when input value from Dataframe is None

st.text_input shows “None” when input value from Dataframe is None. Is there any way to show “” instead of None when the input value is None or null or any other type of na?

I’m having a form to show and fill, so there’re lots of st.text_input to use. I’m now trying “if pd.notna(value): xxx else: xxx” but with lots of st.text_input components, it’s way too complicated.

Did you try adding
within your text input?

Actually for those not None values, I used the exact value, for None values I used default definition of st.text_input without setting value, which is the same with value=‘’