1. Learn
  2. /
  3. Courses
  4. /
  5. Exploratory Data Analysis in Python

Connected

Exercise

Finding the number of unique values

You would like to practice some of the categorical data manipulation and analysis skills that you've just seen. To help identify which data could be reformatted to extract value, you are going to find out which non-numeric columns in the planes dataset have a large number of unique values.

pandas has been imported for you as pd, and the dataset has been stored as planes.

Instructions

100 XP
  • Filter planes for columns that are of "object" data type.
  • Loop through the columns in the dataset.
  • Add the column iterator to the print statement, then call the function to return the number of unique values in the column.