Session Ready
Exercise

Boolean indexing and Matplotlib fun

Now let's look at how Boolean indexing can help us explore data visually in just a few lines of code. In this exercise, you'll practice many of the things you've learned - converting data from a dictionary into a useable pandas' DataFrame, indexing using Booleans, and then using matplotlib to visualize your data to learn about some relationships in the wildlife strikes data.

Instructions
100 XP
  • Convert the strikes dictionary to a DataFrame.
  • Create a Boolean filter for 'Turbofan' in the 'Engine' column.
  • Create a Boolean filter for 'Turboprop' in the 'Engine' column.
  • Plot two scatter plots using turbofan and turboprop to filter the strikes dataset.