Changing None value to something else - st.column_config.LinkColumn

Hey guys!
Speaking of dataframes and linkcolumns…
Does anyone know how to change None to something else.
I want to have links in the column, but sometimes if a value is missing Id like to have “-” (plain text, not as a link) instead of None.

Cheers!
Bjorn

Do you only want to change this for a single column or the full dataframe? We have an open feature request here to configure this for the full dataframe: Allow configuration of missing value placeholder in `st.dataframe` · Issue #7360 · streamlit/streamlit · GitHub Feel free to upvote and add a comment about your usecase!

1 Like

Hey! Only want to change it for the LinkColumn. And atm it seems only None value will be in text form. All other values will become links. This is frustrating :roll_eyes: There should be an argument like ”missing links” = and the user can choose what it should display, like ”n/a” or in my case ”-” because thats what I use for missing ones.
How can we achieve this? Do the team need to make a new update fix for this?
I upvoted/commented, but that ”ticket” is 1.5 yrs old…
Feels like it will take forever for this to be implemented, but to me it should be at the top of the list. Streamlit is focused on exactly that, easily create web apps for Data Science where Dataframes are integral part. Essential fix, this one. Hope it gets resolved quickly :slightly_smiling_face:

You cannot have "-" without a link, but you can have an empty string, that should be good enough.

Yeah? Thats better yeah, Ill try it. But all of my NaN in the Dataframe are ”-” so ofc I want that. It should be possible and a simple fix to get it right? I mean in an update from the team