duckdb-web icon indicating copy to clipboard operation
duckdb-web copied to clipboard

[Python] docstring for DuckDBPyRelation.unique() describes different functionality to what it does

Open ned2 opened this issue 1 year ago • 1 comments

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?

ned2 avatar May 09 '24 05:05 ned2

cc @Tishj

ned2 avatar May 09 '24 07:05 ned2

Hi @ned2, sorry, this was on the backlog for quite some time. I PR'd the fix now.

szarnyasg avatar Mar 26 '25 12:03 szarnyasg