Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distinct() filters None #412

Closed
bmaggard opened this issue Feb 6, 2017 · 1 comment · Fixed by #414

Comments

@bmaggard
Copy link
Contributor

commented Feb 6, 2017

Is this the desired behavior? It's not mentioned in the docs, and differs from the way relational databases work (DISTINCT does not remove nulls). Specifying key and/or presorted produces the same result:

import petl as etl
t = etl.wrap([['foo'], [None], [False], ['a'], ['a']])
t
foo
None
False
a
a
t.distinct()
foo
False
a
@alimanfoo

This comment has been minimized.

Copy link
Collaborator

commented Feb 8, 2017

alimanfoo added a commit that referenced this issue Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.