https://dataindependent.com/pandas/pa...
Pandas Query, the way to filter your data you haven't heard of. Well I guess you have because you're here.
Pandas DataFrame.query() will filter the rows of your DataFrame with a True/False (boolean) expression. This is super helpful when filtering your data.
pandas.DataFrame.query('your_query_expression')