Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
You can format a slicer in Microsoft Excel by setting its number of columns, its style, etc. Aspose.Cells for Python via .NET also allows you to do this using the Slicer.number_of_columns and Slicer.style_type properties.
Please see the following code; it loads the sample Excel file that contains a slicer. It accesses the slicer, sets its number of columns and style type, and saves it as the output Excel file. The screenshot shows how the slicer looks after executing the sample code.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.