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
Add a data type check and JSON-safe stringification method for all Pandas datatypes datetime64, timedelta[ns], and boolean .
The text was updated successfully, but these errors were encountered:
ryanbaumann
changed the title
df_to_geojson() function should stringify all Pandas datatypes
df_to_geojson() function should JSON-safe stringify all Pandas datatypes
Jan 6, 2018
Problem
Passing a datetime Pandas datatype column to df_to_geojson() as a property output throws a JSON serialization error.
See https://github.com/mapbox/mapboxgl-jupyter/blob/master/mapboxgl/utils.py#L28
Solution
Add a data type check and JSON-safe stringification method for all Pandas datatypes
datetime64
,timedelta[ns]
, andboolean
.The text was updated successfully, but these errors were encountered: