dfr drop-duplicates
for dataframe> dfr drop-duplicates {flags} (subset)
--maintain, -m
: maintain order--last, -l
: keeps last duplicate value (by default keeps first)subset
: subset of columns to drop duplicatesinput | output |
---|---|
any | any |
drop duplicates
> [[ab]; [12] [34] [12]] |dfr into-df|dfr drop-duplicates
╭───┬───┬───╮
│# │ a │ b │
├───┼───┼───┤
│0│3│4│
│1│1│2│
╰───┴───┴───╯
Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_drop-duplicates.html