Skip to content

Commit 759dab8

Browse files
fix a mis use of isnan from math
1 parent 079ee97 commit 759dab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipyleaflet/leaflet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ def _get_data(self):
13771377
if not self.geo_data:
13781378
return {}
13791379

1380-
choro_data_values_list = [x for x in self.choro_data.values() if not math.isnan(x)]
1380+
choro_data_values_list = [x for x in self.choro_data.values() if not isnan(x)]
13811381

13821382
if self.value_min is None:
13831383
self.value_min = min(choro_data_values_list)

0 commit comments

Comments
 (0)