शुरू करेंमुफ़्त में शुरू करें

Plotting points over polygons - part 1

Make a basic plot of the service districts with the chicken locations. The packages needed have already been imported for you. The chickens DataFrame and service_district GeoDataFrame has been pre-loaded for you.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Visualizing Geospatial Data in Python

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Plot the shapefile for the service districts, using the name column to color the polygons.
  • Add chicken locations, using the lat and lng columns from the chickens DataFrame, and make them black.
  • Show your plot.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Plot the service district shapefile
service_district.plot(column=____)

# Add the chicken locations
plt.scatter(x=____, y=____, ____ = 'black')

# Show the plot
plt.____()
कोड संपादित करें और चलाएँ