How to get rid of 0s showing up in st.experimental_data_editor


In my dataframe, there appear 0s in front of each value in my second row. I can’t seem to understand where these "0"s are coming from. Is there a command that can get rid of them. Attached is what my dataframe currently resembles.

You probably want to cast it as int, it is most likely as string.

Given that approach, how would I restructure this line of code that represents that row…
df2.loc[len(df1.index)] = [β€˜Name 2’, df1[β€œ92”], df1[β€œ62”], df1[β€œ39”],df1[β€œ28”],df1[β€œ71”],df1[β€œ6”] ]

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