spss_import_csv
Convert CSV files to SPSS .sav format without requiring IBM SPSS Statistics. Leverages pandas and pyreadstat for direct conversion, saving output beside the CSV or to a specified path.
Instructions
Convert a CSV file to SPSS .sav format directly using pandas + pyreadstat — no IBM SPSS Statistics installation required. Much faster than going through SPSS syntax because it bypasses the SPSS engine entirely. Saves the .sav file next to the CSV by default, or to a custom output_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv_path | Yes | ||
| encoding | No | utf-8 | |
| delimiter | No | , | |
| output_path | No | ||
| column_labels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |