Cannot keep float number from st.data_editor

When I input float number like β€œ0.2” or β€œ1.23” to st.data_editor using st.column_config.NumberColumn
it always return a round number in integer like β€œ0” or β€œ1”
please help me

edited_df = st.data_editor(df, num_rows=β€œdynamic”,use_container_width = True,
column_config = {β€œε›žθ»’ζ•°β€ : st.column_config.NumberColumn(width = β€œsmall”, min_value = 0, max_value = 1000),
β€œDRYγƒ¬γƒΌγƒˆβ€ : st.column_config.NumberColumn(width = β€œsmall”,min_value = 0, max_value = 1000),
β€œε‡ε›Ίε‰€ζΏƒεΊ¦β€ : st.column_config.NumberColumn(min_value = 0, max_value = 1000, step = 0.1),
β€œε‡ε›Ίε‰€_phr” : st.column_config.NumberColumn(min_value = 0.01, max_value = 99.99, step = 0.01),
β€œζ³¨ζ°΄1桁量” : st.column_config.NumberColumn(min_value = 0, max_value = 1000),
β€œζ³¨ζ°΄2桁量” : st.column_config.NumberColumn(min_value = 0, max_value = 1000),
β€œζ³¨ζ°΄2濃度” : st.column_config.NumberColumn(min_value = 0, max_value = 1000, step = 0.01),
β€œζ³¨ζ°΄2_phr” : st.column_config.NumberColumn(min_value = 0.01, max_value = 99.99, step = 0.01)
}
)
st.write(edited_df)

Hi @Cong_Tran_Chi
Did you try to change min_value and max_value to a float? Like max_value = 1000.0?
Your value there is an integer.
Sorry, did not test if this is the solution, just a guess.

Good luck,
Liv

The output edited_df has the same columns with the same types as the input df.