diff --git a/TM1py/Services/CellService.py b/TM1py/Services/CellService.py index a1fe29e5..45158e36 100644 --- a/TM1py/Services/CellService.py +++ b/TM1py/Services/CellService.py @@ -632,7 +632,7 @@ def write_dataframe(self, cube_name: str, data: 'pd.DataFrame', dimensions: Iter precision: int = None, skip_non_updateable: bool = False, measure_dimension_elements: Dict = None, sum_numeric_duplicates: bool = True, remove_blob: bool = True, allow_spread: bool = False, - **kwargs) -> str: + clear_view: str = None, **kwargs) -> str: """ Function expects same shape as `execute_mdx_dataframe` returns. Column order must match dimensions in the target cube with an additional column for the values. @@ -656,6 +656,7 @@ def write_dataframe(self, cube_name: str, data: 'pd.DataFrame', dimensions: Iter :param sum_numeric_duplicates: Aggregate numerical values for duplicated intersections :param remove_blob: remove blob file after writing with use_blob=True :param allow_spread: allow TI process in use_blob or use_ti to use CellPutProportionalSpread on C elements + :param clear_view: name of cube view to clear before writing :return: changeset or None """ if not isinstance(data, pd.DataFrame): @@ -684,6 +685,7 @@ def write_dataframe(self, cube_name: str, data: 'pd.DataFrame', dimensions: Iter skip_non_updateable=skip_non_updateable, measure_dimension_elements=measure_dimension_elements, allow_spread=allow_spread, + clear_view=clear_view, **kwargs) @manage_transaction_log