
## refresh_data(self) {#}

Refreshes pivottable's data and setting from it's data source.



```python

def refresh_data(self):
    ...
```


### Remarks

We will gather data from data source to a pivot cache ,then calculate the data in the cache to the cells.
This method is only used to gather all data to a pivot cache.

## refresh_data(self, option) {#aspose.cells.pivot.PivotTableRefreshOption}

Refreshes pivottable's data and setting from it's data source with options.



```python

def refresh_data(self, option):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| option | aspose.cells.pivot.PivotTableRefreshOption | The options for refreshing data source of pivot table. |



### See Also
* module [`aspose.cells.pivot`](../../)
* class [`PivotRefreshState`](/cells/python-net/aspose.cells.pivot/pivotrefreshstate)
* class [`PivotTable`](/cells/python-net/aspose.cells.pivot/pivottable)
