Skip to content

Commit 0b05071

Browse files
authored
Fix Choropleth bins list of int (#1664)
1 parent 200d47f commit 0b05071

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

folium/features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,7 @@ def __init__(
15141514
# then we 'correct' the last edge for numpy digitize
15151515
# (we add a very small amount to fake an inclusive right interval)
15161516
increasing = bin_edges[0] <= bin_edges[-1]
1517+
bin_edges = bin_edges.astype(float)
15171518
bin_edges[-1] = np.nextafter(
15181519
bin_edges[-1], (1 if increasing else -1) * np.inf
15191520
)

0 commit comments

Comments
 (0)