dfr drop-duplicates for dataframe

Drops duplicate values in dataframe.

WARNING

Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Signature

> dfr drop-duplicates {flags} (subset)

Flags

  • --maintain, -m: maintain order
  • --last, -l: keeps last duplicate value (by default keeps first)

Parameters

  • subset: subset of columns to drop duplicates

Input/output types:

inputoutput
anyany

Examples

drop duplicates

> [[a b]; [1 2] [3 4] [1 2]] | dfr into-df | dfr drop-duplicates
╭───┬───┬───╮
 # │ a │ b │
├───┼───┼───┤
 0  3  4 
 1  1  2 
╰───┴───┴───╯