diff --git a/folium/features.py b/folium/features.py index 8385b3d46e..a08dc898a0 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 )