Informatics Practices

Fill in the Blank

Boolean indexing in Pandas DataFrame can be used for ……………

  1. Creating a new DataFrame
  2. Sorting data based on index labels
  3. Joining data using labels
  4. Filtering data based on condition

Python Pandas

3 Likes

Answer

Filtering data based on condition

Reason — Boolean indexing in Pandas DataFrame allows for the selection of rows based on a condition that evaluates to True or False.

Answered By

3 Likes


Related Questions