The accepted answer shows how to filter rows in a pandas DataFrame based on column values using .loc. Use == to select rows where the column equals a value. Use .isin () to select rows where the column value is in a list. Combine multiple conditions using & (with parentheses). Use != or ~ to exclude values. The answer also includes examples demonstrating the output.