py
The py
command applies Python scripts to CSV data for custom transformations.
Syntax
qsv py [options] <script> <input_file> [<output_file>]
Description
The py
command is used to apply Python scripts to CSV data for custom transformations. This is useful for performing complex data manipulations that are not supported by built-in commands.
Options
--no-headers
: When set, the first row will not be interpreted as headers
Examples
Apply Python Script
Apply a Python script to a CSV file:
qsv py script.py DLD_Transactions_English_500.csv | qsv table
Common Use Cases
- Performing complex data manipulations
- Custom transformations using Python scripts
Tips
- Verify the output to ensure the script is correctly applied
- Use in combination with other commands for complex data processing