New answers tagged

2 votes

Preserving None values in GeoPandas when dissolving (by="id", aggfunc="first", as_index=False)

This might work. Replace the None's with some value that you are sure does not exist, I use -999, dissolve then change them back to None import geopandas as gpd import numpy as np df = gpd.read_file(...
user avatar
  • 52.1k

Top 50 recent answers are included