Advanced Use of Pandas for Geospatial Data Analysis
Instruction: Explain how to use Pandas for manipulating and analyzing geospatial data.
Context: Tests the candidate's ability to extend Pandas functionality to geospatial data analysis, showcasing adaptability to different data types.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
Use pandas for attributes and GeoPandas for vector geometry. Keep a geometry column and its verified coordinate reference system (CRS) together.
Load a vector source or construct points from validated longitude/latitude columns, with x=longitude and y=latitude. Reject invalid ranges and distinguish missing from empty geometries...