dask df.col.unique() vs df.col.drop_duplicates()

Viewed 7531

In dask what is the difference between

df.col.unique()

and

df.col.drop_duplicates()

Both return a series containing the unique elements of df.col. There is a difference in the index, unique result is indexed by 1..N while drop_duplicates indexed by an arbitrary looking sequence of numbers.

What is the significance of the index returned by drop_duplicates?

Is there any reason to use one over the other if the index is not important?

1 Answers
Related