Save Pivot Table in ODS file

How to Save Pivot Table in an ODS file

Aspose.Cells for Python via .NET provides the ability to save a pivot table in ODS files. For this, you simply convert a workbook with an existing pivot table or create a new pivot table and save the file in the ODS format. Be sure to call PivotTable.calculate_data before saving to ensure that the pivot table is rendered in the output ODS file. The following code snippet demonstrates saving a pivot table in an ODS file.

Sample Code

The output file generated by the above code is attached for your reference.

Output ODS File