2

I try to do the following:

df[df['colname'] != None]

and as a result I get:

KeyError: 'no item named True'

1 Answer 1

3

Use dropna():

df.dropna(subset=['colname'])

or alternatively Series.notnull:

df[df['colname'].notnull()]

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.