Skip to main content

extdedup

The extdedup command removes duplicate rows from a CSV file based on external criteria. !

Syntax​

qsv extdedup [options] <input_file> [<output_file>]

Description​

The extdedup command is used to remove duplicate rows from a CSV file based on external criteria. This is useful for ensuring data integrity and removing redundant data.

Options​

  • -c, --column <name>: Specify the column to check for duplicates
  • --no-headers: When set, the first row will not be interpreted as headers

Examples​

Remove Duplicates by Column​

Remove duplicate rows based on the transaction_id column:

qsv extdedup -c transaction_id DLD_Transactions_English_500.csv | qsv table

Common Use Cases​

  • Ensuring data integrity
  • Removing redundant data

Tips​

  • Verify the output to ensure duplicates are correctly removed
  • Use in combination with other commands for complex data processing

See Also​

  • dedup - for removing duplicate rows based on all columns
  • select - for selecting specific columns