Python Functions and Classes
The Python Integration Package for IBM® SPSS® Statistics contains functions and classes that facilitate the process of using Python programming features with IBM SPSS Statistics, including those that:
Build and run command syntax
Get information about data files in the current IBM SPSS Statistics session
- spss.GetCaseCount
- spss.GetDataFileAttributes
- spss.GetFileHandles
- spss.GetMultiResponseSet
- spss.GetSplitVariableNames
- spss.GetVarAttributes
- spss.GetVariableCount
- spss.GetVariableFormat
- spss.GetVariableLabel
- spss.GetVariableMeasurementLevel
- spss.GetVariableName
- spss.GetVariableType
- spss.GetVarMissingValues
- spss.GetWeightVar
Get data, add new variables, and append cases to the active dataset
Access and manage multiple datasets
Get output results
Create custom pivot tables and text blocks
Create macro variables
Get error information
Manage multiple versions of the IBM SPSS Statistics - Integration Plug-in for Python
Locale and Output Language Settings
Brief descriptions of each function are available using the Python help
function, as in:
BEGIN PROGRAM.
import spss
help(spss.Submit)
END PROGRAM.