duckdb-web
duckdb-web copied to clipboard
[Python] docstring for DuckDBPyRelation.unique() describes different functionality to what it does
The docstring for DuckDBPyRelation.unique() says this: Number of distinct values in a column.
In practice, it looks like it's actually performing a deduplication on the supplied column expression. ie these two relational expressions appear equivalent:
relation.unique("some_column")
relation.select("some_column").distinct()
Perhaps the docstring needs updating?
cc @Tishj
Hi @ned2, sorry, this was on the backlog for quite some time. I PR'd the fix now.