Boolean Indexing / Mask (Pandas)

Boolean indexing filters a DataFrame or Series by passing it an array of True/False values, keeping only the rows where the condition is True. The boolean…