Geopandas

Shapefile Conditional Columns in GeoPandas and Numpy

Shapefile Conditional Columns in GeoPandas and Numpy

While most shapefiles acquired from various sources are fairly ready to use with little or no edits, other uses may dictate that changes are made to a shapefile. One such instance is the need to add a column to a shapefile based on some condition. In most instances, the conditions may be too complicated such…