You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
Getting JSON format issue because of NaN values in some of the latitudes and longitudes. You could do a check before setting value into the latitudes and longitudes as you already have templated it as "nan"
Getting JSON format issue because of NaN values in some of the latitudes and longitudes. You could do a check before setting value into the latitudes and longitudes as you already have templated it as "nan"
if not math.isnan(row['Lat']):
tmp_country_position['latitude'] = row['Lat']
if not math.isnan(row['Long']):
tmp_country_position['longitude'] = row['Long']
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Getting JSON format issue because of NaN values in some of the latitudes and longitudes. You could do a check before setting value into the latitudes and longitudes as you already have templated it as "nan"
"latest":306385,"province":"Quebec"},{"coordinates":{"latitude":NaN,"longitude":NaN},"country":"Canada",
The text was updated successfully, but these errors were encountered: