Skip to content

Commit 7f9a247

Browse files
authored
fix heatmap withtime py3k (#682)
1 parent 45d81cf commit 7f9a247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

folium/plugins/heat_map_withtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, data, index=None, name=None, radius=15, min_opacity=0, max_op
6262
self.index = index if index is not None else [str(i) for i in range(1, len(data)+1)]
6363
if len(self.data) != len(self.index):
6464
raise ValueError('Input data and index are not of compatible lengths.')
65-
self.times = range(1, len(data)+1)
65+
self.times = list(range(1, len(data)+1))
6666

6767
# Heatmap settings.
6868
self.radius = radius

0 commit comments

Comments
 (0)