Swap Method (Python)

Swaps the selected column(s) or rows with a specified column or row. The data are swapped together with the labels.

  • The selected and specified labels must be in the same dimension and must be either category or group labels. (That is, they cannot be dimension names.)
  • If no labels in the same dimenison are selected, the method is ignored.

Syntax

SpssLabels.Swap(row,column)

Parameters

row. Row index in the label array

column. Column index in the label array