UnexpectedRowsExpectation in pandas dataframe

How to run this on pandas dataframe? the below code not works.please help.
class ExpectPassengerCountToBeLegal(gx.expectations.UnexpectedRowsExpectation):
unexpected_rows_query: str = (
“SELECT * FROM {batch} WHERE passenger_count > 6 or passenger_count < 0”
)