title: Is any simpler way to plot GeoPandas data in Altair chart?
body: <p>The basic way to display <code>GeoDataFrame</code> in <code>Altair</code>:</p>
  
  
  
  <pre class="lang-py prettyprint-override"><code>import altair as alt
  import geopandas as gpd
  
  alt.renderers.enable('notebook')
  
  world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
  
  data  = alt.InlineData(values = world[world.continent=='Africa'].__geo_interface__, #geopandas to geojson
                         # root object type is "FeatureCollection" but we need its features
                         format = alt.DataFormat(property='features',type='json')) 
  alt.Chart(data).mark_geoshape(
  ).encode( 
      color='properties.pop_est:Q', # GeoDataFrame fields are accessible through a "properties" object 
      tooltip=['properties.name:N','properties.pop_est:Q']
  ).properties( 
  
      width=500,
      height=300
  )
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BLOOX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BLOOX.png" alt="Result"></a></p>
  
  <p>But it will crush if I add column with <code>Nan</code> or <code>DateTime</code> values. </p>