It seems quite standard to filter a Pandas Dataframe with a condition like this
filter_ = (df == True)
df = df[filter_]
but according to PyCharm, this does not conform to PEP 8, and I get this message using Pylint
C0121: Comparison to True should be just 'expr' (singleton-comparison)
Is there a PEP 8 friendly way to do this?