Open jrjdavidson opened 3 months ago
Thanks for the report! Just by reading it, it seems to make sense that that change affected it. I think the desired behavior is to not show "null" strings, but show an empty field instead. Someone should look into how we can do that. Ideally we do that close to the part where the data is displayed.
Describe the bug Very small bug, but there has been a small change in how empty values are handled and updating to the latest folium has affected how popups are displayed. When creating a geojsonpopup using the fields keywords and a geodataframe, if a cell was empty the the content used to be empty. This allowed me to use simple css to hide row when empty:
This behaviour was useful, as it was a simple way to add large amounts of data if present, but also simplify the output when no data available. Since updating, the empty cells now have the string 'null' inside, breaking the styling. See example image: Related to #1858 ?
To Reproduce update to latest version of folium
Expected behavior Empty cell should be empty in the popup
Environment (please complete the following information):
Possible solutions I haven't found a simple solution yet. I had a look at the source, but not sure where the actual change occurred.