pyspssio.append_sav
- pyspssio.append_sav(spss_file, df, locale=None, **kwargs)[source]
Append existing SPSS file (.sav or .zsav) with additional records
- Parameters:
spss_file (
str) – SPSS filename (.sav or .zsav)df (
DataFrame) – DataFramelocale (
str(default:None)) – Locale to use when I/O module is operating in codepage mode**kwargs – Additional arguments
- Return type:
None
Notes
Cannot modify metadata when appending new records. Be careful with strings that might be longer than the allowed width.
It may or may not be necessary to manually set locale since file encoding information is obtained from the SPSS header information.
Examples
>>> pyspssio.append_sav("spss_file.sav", df)