Working on rows

Summary

I want to highlight a row of data which i am showing using st.data_editor

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If youโ€™re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

Hey @avanish,

Thanks for sharing this question! st.data_editor doesnโ€™t have built-in functionality for changing the background color, but it does have limited compatibility with Pandas styling โ€“ the main restriction is that it only works for non-editable columns. If that would work for your use case, Iโ€™d recommend checking out the Pandas doc on styling and this guide on changing the background color of your Pandas dataframe.

Hope this helps!

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