The AreDuplicate command returns a truefalseFAIL DataSeries that shows any duplicate values as true.
If the DataSeries is indexed by the result, a filtered DataSeries is returned that shows just the duplicate values:
If a DataFrame is indexed by the result, a filtered DataFrame is returned that shows only the rows with duplicates in a given column.
For example, the following shows just the rows with duplicate elements in the first column:
This can also be combined with other queries in order to show rows that meet a given criteria. For example, to see which rows have duplicate elements in the first column and are greater than 2:
>
|
DF[ AreDuplicate( DF[1] ) and DF[1] >~ 2 ];
|