This document is a Python reference guide for IBM SPSS Statistics 28. It introduces Python integration package, Python syntax rules, Python functions and classes.
This guide applies to version 28, release 0, modification 0 of IBM SPSS Statistics and describes the IBM SPSS Statistics Integration Plug-in for Python. It covers two interfaces: the Python Integration Package, for working with command syntax, variable dictionary information, case data, and procedure output, and the Scripting Facility, for working with user interface and output objects.
The guide explains Python program blocks, syntax rules, multiple versions, working directories, running IBM SPSS Statistics from an external Python process, and localizing output. It also documents Python functions and classes, the scripting class hierarchy, pivot tables, remote server management, and several appendices. The plug-in is included with IBM SPSS Statistics Essentials for Python, which includes Python 3.9.
| Product version | 28, release 0, modification 0 |
|---|---|
| Included Python version | Python 3.9 |
| Supported operating systems | Windows, Linux, macOS, and UNIX for IBM SPSS Statistics Server |
| Default Python distribution location | Python3 directory under the SPSS Statistics installation directory |
| Programming interfaces | Python Integration Package and Scripting Facility |
The Python Integration Package, which works with command syntax, data, and output, and the Scripting Facility, which works with user interface and output objects.
Python 3.9 is included with Essentials for Python on all supported operating systems.
They are expressed as character strings, typically with spss.Submit, because standard commands are not recognized directly by Python inside the block.
It is installed to the Python3 directory under the directory where SPSS Statistics is installed.