Session Ready
Exercise

Categorical columns

In the flights data there are two columns, carrier and org, which hold categorical data. You need to transform those columns into indexed numerical values.

Instructions
100 XP
  • Import the appropriate class and create an indexer object to transform the carrier column from a string to an numeric index.
  • Prepare the indexer object on the flight data.
  • Use the prepared indexer to create the numeric index column.
  • Repeat the process for the org column.