From 14654f2d0c7d67dc7a93154d5a5ae1c3e1614cfa Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Sat, 26 Nov 2022 18:10:47 +0100 Subject: [PATCH] Fix Choropleth bins list of int --- folium/features.py | 1 + 1 file changed, 1 insertion(+) diff --git a/folium/features.py b/folium/features.py index 8385b3d46..a08dc898a 100644 --- a/folium/features.py +++ b/folium/features.py @@ -1514,6 +1514,7 @@ def __init__( # then we 'correct' the last edge for numpy digitize # (we add a very small amount to fake an inclusive right interval) increasing = bin_edges[0] <= bin_edges[-1] + bin_edges = bin_edges.astype(float) bin_edges[-1] = np.nextafter( bin_edges[-1], (1 if increasing else -1) * np.inf )