I have the following DataFrame:
daysago line_race rating rw wrating line_date 2007
But for any future bypassers you could mention that df = df[df.line_race != 0] doesn't do anything when trying to filter for None/missing values.
df = df[df.line_race != 0]
None
Does work:
Doesn't do anything:
df = df[df.line_race != None]
df = df[df.line_race.notnull()]