Skip to main content

validate

The validate command validates the structure and content of a CSV file.

Syntax​

qsv validate [options] <input_file>

Description​

The validate command is used to validate the structure and content of a CSV file. This is useful for ensuring data quality and integrity.

Options​

  • --no-headers: When set, the first row will not be interpreted as headers

Exit Codes​

  • 0: Validation successful
  • Non-zero: An error occurred

Examples​

Validate CSV File​

Validate the structure and content of a CSV file:

qsv validate DLD_Transactions_English_500.csv

Common Use Cases​

  • Ensuring data quality and integrity
  • Preparing data for analysis or processing

Tips​

  • Verify the output to ensure the data is correctly validated
  • Use in combination with other commands for complex data processing

See Also​

  • select - for selecting specific columns
  • apply - for data transformations