Closed jfilter closed 3 years ago
How would this handle .distinct('divisions', 'subdivisions')
?
Only return the raw values for single columns. So don't change anything for multiple columns.
Return tuples
New method distinct_values
that returns raw values (or tuples for multiple columns)
I feel it's icky to break the API in this way. If you want to submit a PR to add a second function, e.g. distinct_items
or so, it's very welcome!
Hello @pudo, great work, all cool, but: I stumbled upon the usage of
.distinct
. I expected dataset to return values and not rows. I don't really see a usage for the 'raw' output ofdb.query
. So my proposal: return an iterator over the values.