Possible to remove sticking column on dataframe

Currently if you double click on a column in a dataframe it sticks to the dataframe and if you scroll that column scrolls as well. Causing it to overlap with other data.

A good example on what I am trying to explain would be the first dataframe here: st.dataframe - Streamlit Docs

I tried to do columnconfig to disable to True but still getting this issue.

I don’t quite understand what you’re describing – can you share an example script, and explain or show in a video what you’re doing and seeing?

Sorry, not able to record example but you can recreate this in the demo provided in documentation (st.dataframe - Streamlit Docs) Double click on the cell row 1 and col 2 and then scroll the dataframe. The cell you double click scrolls over the data. Noticed this on chrome and edge

below is my code

            df = pd.DataFrame(plq_data)
            st.dataframe(plq_data,height=220, width= 600, hide_index=True, column_config={
            "plq_id": st.column_config.Column(
                "LQ ID",
                width = "small",
                disabled=True
            ), 
            "plq_name": st.column_config.Column(
                "Name",
                disabled=True
            )}, column_order = {"plq_id","plq_name"}, on_select="ignore"
            )

Ah, I see what you mean – I would guess that’s intentionally done as a feature, to make it easier to compare one datapoint to others.

You can certainly request the ability to disable that as a feature at Issues · streamlit/streamlit · GitHub, but I don’t think there’s currently a way to turn that behavior off.

To be clear, you would prefer that double clicking just does nothing, or still makes the cell “pop out”, but also stay in place and not scroll?

1 Like

Preferably just stay in place when scrolling. Highlighting is fine

Gotcha! Feel free to create a new feature request for that on github

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