I'm filtering my DataFrame dropping those rows in which the cell value of a specific column is None.
df = df[df['my_col'].isnull() == False]
Works fine, but PyCharm tells me:
PEP8: comparison to False should be 'if cond is False:' or 'if not cond:'
But I wonder how I should apply this to my use-case? Using 'not ...' or ' is False' did not work. My current solution is:
df = df[df['my_col'].notnull()]