# How to get rid of 0s showing up in st.experimental\_data\_editor

**URL:** <https://discuss.streamlit.io/t/how-to-get-rid-of-0s-showing-up-in-st-experimental-data-editor/51437>\
**Category:** Using Streamlit\
**Tags:** snowpark\
**Created:** [September 13, 2023, 4:55pm UTC](https://discuss.streamlit.io/t/how-to-get-rid-of-0s-showing-up-in-st-experimental-data-editor/51437 "2023-09-13T16:55:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![st.jfern](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@st.jfern](https://discuss.streamlit.io/u/st.jfern)\
**Post date:** [September 13, 2023, 4:55pm UTC](https://discuss.streamlit.io/t/how-to-get-rid-of-0s-showing-up-in-st-experimental-data-editor/51437/1 "2023-09-13T16:55:09Z")

</div>

### Summary

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.

 ![image](https://global.discourse-cdn.com/streamlit/original/3X/6/5/651ad5c82f99fbf46dab82fedbfd840592343445.jpeg)

---

<div class="post-metadata">

**Author:** ![CarlosSerrano](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/carlosserrano/32/49007_2.png) [@CarlosSerrano](https://discuss.streamlit.io/u/CarlosSerrano)\
**Post date:** [September 13, 2023, 5:00pm UTC](https://discuss.streamlit.io/t/how-to-get-rid-of-0s-showing-up-in-st-experimental-data-editor/51437/2 "2023-09-13T17:00:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![st.jfern](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@st.jfern](https://discuss.streamlit.io/u/st.jfern)\
**Post date:** [September 13, 2023, 7:03pm UTC](https://discuss.streamlit.io/t/how-to-get-rid-of-0s-showing-up-in-st-experimental-data-editor/51437/3 "2023-09-13T19:03:37Z")

</div>

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”] ]

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [March 11, 2024, 7:03pm UTC](https://discuss.streamlit.io/t/how-to-get-rid-of-0s-showing-up-in-st-experimental-data-editor/51437/4 "2024-03-11T19:03:48Z")

</div>

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