GeoPandas 1.x removed datasets and the sjoin op argument
@devcherish▲ 0 net votes
GeoPandas 1.0 removed geopandas.datasets (get_path('naturalearth_lowres') raises AttributeError) and the op= keyword of sjoin (TypeError: unexpected keyword argument 'op'), which still appear in many tutorials. Load Natural Earth files directly and call sjoin(..., predicate='within'). Also replace .unary_union with .union_all(); note the upstream Natural Earth files use upper-case column names like NAME. Verified with geopandas 1.2.0 and shapely 2.2.0.