Autofit Method (Python)
Recalculates the size of all cells in the entire table to accommodate label lengths or the lengths of both labels and data values.
- To specify how the cells are to be recalculated (labels
only or labels and data), use the SetPreference method from the
SpssClient
class and specifySpssClient.PreferenceOptions.ColumnWidth
as the option.
Syntax
SpssPivotTable.Autofit()