How can i change the width of data editor cells

Hi, I have a question about the data_editor feature. Can you help me to solve my problem? I do not know how can i change the width of data editor cells or remove the icon in the table.

Hey @Fatemeh_Norouzi ,
If you want to change the width of cell you can use the width parameter available in st.data_editor element. If you donโ€™t specify the width, then it be automatically determined.

If you want to discover more parameters available for data_editor then check offical streamlit doc, the link is provided๐Ÿ‘‡.


I appreciate your response. This parameter seems to control the overall table width. However, my intention is to adjust the width of individual cells within the table. My goal is to input data for 24 hours, and I would like the users to be able to view the entire table, which contains the data for 24 hours, without the need for scrolling. Unfortunately, the current width of the table is preventing me from achieving this.

Looks like you can have limited control on the width when configuring a column.

Sorry for the inconvenience!
You should visit the page suggested by @Goyo, this might help you for sloving the problem!

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