format method

format

Formats selected area of the PivotTable.

def format(self, pivot_area, style):
    ...
ParameterTypeDescription
pivot_areaPivotArea
styleStyle

format

Format the cell in the pivottable area

def format(self, row, column, style):
    ...
ParameterTypeDescription
rowintRow Index of the cell
columnintColumn index of the cell
styleStyleStyle which is to format the cell

See Also