The constructs to work with include:
Filter with like
or regex
or in
:
series.filter(like='some pattern')
series.filter(regex='some regex')
But those are positive not negative filters..
On a Dataframe
we can do a not
with a tilde
as follows:
df.filter(~('some pattern' in df['some_column']))
But that is not available on a Series
. So what is the not
filter on a Series
?