Question · Python course · Module 8: Data Science

Binning

What does the pd.cut() function do in the context of feature engineering?

Answer options

  • Copies a DataFrame
  • Removes columns from a DataFrame
  • Cuts rows that meet a condition
  • Divides numerical data into categories (bins)

You can check the correct answer by solving this task in the CodeWorlds game.