Skip to main content

SPSS Tutorial

This functionality requires an experimental spss plugin. Read More

Frictionless supports reading and writing SPSS files.

CLI
pip install frictionless[spss]
pip install 'frictionless[spss]' # for zsh shell

Reading Data#

You can read SPSS files:

Python
from pprint import pprint
from frictionless import Resource
resource = Resource('data/table.sav')
pprint(resource.read_rows())

Writing Data#

[NOTE] Timezone information is ignored for datetime and time types.

You can write SPSS files:

Python
from frictionless import Resource
source = Resource(data=[['id', 'name'], [1, 'english'], [2, 'german']])
target = source.write('table.sav')
pprint(target)
pprint(target.read_rows())

Configuring Data#

There are no options available in SpssDialect.

References: