julia: find duplicate rows in dataframes

Viewed 3378

I know there are duplicate rows in a large dataframe because unique() results in a smaller dataframe.

I'd like to get those duplicates to help figure out where they are coming from.

I see references to various functions involving duplicates for earlier versions but can't make any of them work for .6

So how can I create a dataframe that contains the duplicate rows contained in another dataframe?

2 Answers

To build on @mbauman. You may want to display the actual data with

 df[findall(nonunique(df)), :]
Related