1. Learn
  2. /
  3. Courses
  4. /
  5. Visualizing Geospatial Data in Python

Connected

Exercise

Plotting chicken locations

Now you will create a scatterplot that shows where the Nashville chickens are!

Instructions

100 XP
  • The path to the chicken dataset is in the variable chickens_path. Use the read_csv function of pandas to load it into a DataFrame called chickens.
  • Use the .head() function to look at the first few rows.
  • Next add the x and y arguments to plt.scatter() to plot the locations of the Nashville chickens. Use the default marker and color options.
  • Show the plot using plt.show().