Skip to content
Advertisement

Tag: pysal

format/round numerical legend label in GeoPandas

I’m looking for a way to format/round the numerical legend labels in those maps produced by .plot() function in GeoPandas. For example: This gives me a legend with many decimal places: I want the legend label to be integers. Answer As I recently encountered the same issue, and a solution does not appear to be readily available on Stack Overflow

Advertisement