title: Do any one know about this Error in python? how can I resolve this?
body: <p>I am plotting the data with MapBoxGl Python Library on maps, here is my code which is taking the latitude, longitude and points from the Pandas DataFrame and trying to make the geojson, here is the code </p>
  
  <pre><code>data4 = df_to_geojson(result, properties= ['speed'], lat='lat', lon='lon')
  print (data4)
  </code></pre>
  
  <p>but I am getting this error, I am not familiar with the error, I looked for it but didn't find any solution:</p>
  
  <pre><code>&gt; --------------------------------------------------------------------------- ValueError                                Traceback (most recent call
  &gt; last) ~\Anaconda3\lib\site-packages\IPython\core\formatters.py in
  &gt; __call__(self, obj)
  &gt;     691                 type_pprinters=self.type_printers,
  &gt;     692                 deferred_pprinters=self.deferred_printers)
  &gt; --&gt; 693             printer.pretty(obj)
  &gt;     694             printer.flush()
  &gt;     695             return stream.getvalue()
  &gt; 
  &gt; ~\Anaconda3\lib\site-packages\IPython\lib\pretty.py in pretty(self,
  &gt; obj)
  &gt;     363                 if cls in self.type_pprinters:
  &gt;     364                     # printer registered in self.type_pprinters
  &gt; --&gt; 365                     return self.type_pprinters[cls](obj, self, cycle)
  &gt;     366                 else:
  &gt;     367                     # deferred printer
  &gt; 
  &gt; ~\Anaconda3\lib\site-packages\IPython\lib\pretty.py in inner(obj, p,
  &gt; cycle)
  &gt;     594         if basetype is not None and typ is not basetype and typ.__repr__ != basetype.__repr__:
  &gt;     595             # If the subclass provides its own repr, use it instead.
  &gt; --&gt; 596             return p.text(typ.__repr__(obj))
  &gt;     597 
  &gt;     598         if cycle:
  &gt; 
  &gt; ~\Anaconda3\lib\site-packages\geojson\base.py in __repr__(self)
  &gt;      25 
  &gt;      26     def __repr__(self):
  &gt; ---&gt; 27         return geojson.dumps(self, sort_keys=True)
  &gt;      28 
  &gt;      29     __str__ = __repr__
  &gt; 
  &gt; ~\Anaconda3\lib\site-packages\geojson\codec.py in dumps(obj, cls,
  &gt; allow_nan, **kwargs)
  &gt;      30 def dumps(obj, cls=GeoJSONEncoder, allow_nan=False, **kwargs):
  &gt;      31     return json.dumps(to_mapping(obj),
  &gt; ---&gt; 32                       cls=cls, allow_nan=allow_nan, **kwargs)
  &gt;      33 
  &gt;      34 
  &gt; 
  &gt; ~\Anaconda3\lib\json\__init__.py in dumps(obj, skipkeys, ensure_ascii,
  &gt; check_circular, allow_nan, cls, indent, separators, default,
  &gt; sort_keys, **kw)
  &gt;     236         check_circular=check_circular, allow_nan=allow_nan, indent=indent,
  &gt;     237         separators=separators, default=default, sort_keys=sort_keys,
  &gt; --&gt; 238         **kw).encode(obj)
  &gt;     239 
  &gt;     240 
  &gt; 
  &gt; ~\Anaconda3\lib\json\encoder.py in encode(self, o)
  &gt;     197         # exceptions aren't as detailed.  The list call should be roughly
  &gt;     198         # equivalent to the PySequence_Fast that ''.join() would do.
  &gt; --&gt; 199         chunks = self.iterencode(o, _one_shot=True)
  &gt;     200         if not isinstance(chunks, (list, tuple)):
  &gt;     201             chunks = list(chunks)
  &gt; 
  &gt; ~\Anaconda3\lib\json\encoder.py in iterencode(self, o, _one_shot)
  &gt;     255                 self.key_separator, self.item_separator, self.sort_keys,
  &gt;     256                 self.skipkeys, _one_shot)
  &gt; --&gt; 257         return _iterencode(o, 0)
  &gt;     258 
  &gt;     259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
  &gt; 
  &gt; ValueError: Out of range float values are not JSON compliant
  </code></pre>