holoviz / spatialpandas

Pandas extension arrays for spatial/geometric operations
BSD 2-Clause "Simplified" License
308 stars 25 forks source link

Graceful handling of NoneTypes #27

Closed brl0 closed 4 years ago

brl0 commented 4 years ago

An error is generated when converting a GeoPandas dataframe containing NoneTypes in the geometry column to a spatialpandas GeoDataFrame. For example: ValueError: Received invalid value of type NoneType. Must be an instance of Point, or MultiPoint

It would be nice if NoneTypes were handled gracefully.

jonmmease commented 4 years ago

Thanks for the report. Yeah, None's should get translated to nulls in the pyarrow ragged array.

jonmmease commented 4 years ago

Done in 0.3.4