Pivot Tables (Python)

The scripting facility allows you to do most of the things you can do in the pivot table editor, through use of the SpssPivotTable class. There are two general approaches for working with pivot tables from scripting:

Generally speaking, if you want to modify a number of elements in the same manner, the first approach is faster.

Areas of a Pivot Table

(Red labels indicate accessible objects.)

Available Objects

The SpssPivotTable object provides access to the following objects: