Spatial join practice
Is there a difference between art (point data) that intersects with neighborhoods (polygon data) and art (point data) within neighborhoods (polygon data)? Explore different spatial joins with the art_geo and neighborhoods GeoDataFrames, which has been pre-loaded for you.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Visualizing Geospatial Data in Python
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Spatially join art_geo and neighborhoods
art_intersect_neighborhoods = gpd.____(art_geo, neighborhoods, predicate = ____)
# Print the shape property of art_intersect_neighborhoods
print(art_intersect_neighborhoods.____)