Open-Source-Spatial-Clean-Cooking-Tool / OnStove

This repository contain the general code for the Open Source Spatial Clean Cooking Tool OnStove
MIT License
7 stars 9 forks source link

Add admin levels dataset to main gdf #109

Closed camiloramirezgo closed 2 years ago

camiloramirezgo commented 2 years ago

Babak has a function for this. @babak, paste the function as a comment here.

babakkhavari commented 2 years ago

joined = gpd.sjoin(gdf, admin, how="inner", op='intersects')

But before running this we might have to ensure that admin only has the name of the units in the attr. table