Error with StreamlitAPIException

I have a streamlit app that read file and display its content where the user can add records to the file.
csv file :

with 5 columns data type = (4 float - 1 string)

the problem is that when i upgrade to the latest version this error start to show :

then when i changed the below line


    df_types = pd.DataFrame(df.dtypes, columns=['Data Type']).astype(str)

it works and display the table

But the error occur in other line and display the bellow error:

raise errors.StreamlitAPIException(e)

streamlit.errors.StreamlitAPIException: (โ€˜Could not convert 3.1 with type str: tried to convert
to doubleโ€™, โ€˜Conversion failed for column sepal.length with type objectโ€™)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.