Hi I’ve built a filter where I expect the results to only show ‘New’. However the result shows everything but new?
JavaScript
x
3
1
filt = (export['jiraStatus'] == 'New')
2
print(export.loc[~filt])
3
Thoughts?
TIA
Neil
Advertisement
Answer
The ~
negates/inverts the filter. Just use .loc[filt]
instead of .loc[~filt]
to get the un-negated result.