Advertisements
Advertisements
Question
Boolean indexing in Pandas DataFrame can be used for ______.
Options
Creating a new DataFrame.
Sorting data based on index labels.
Joining data using labels.
Filtering data based on condition.
MCQ
Fill in the Blanks
Solution
Boolean indexing in Pandas DataFrame can be used for filtering data based on condition.
Explanation:
- Boolean indexing in Pandas facilitates the filtration of a DataFrame according to a specified criterion.
- It generates a mask (Boolean values) and chooses the rows or columns where the condition is True exclusively.
shaalaa.com
Is there an error in this question or solution?