From 6947bd53c43a83ad057256f1b62bd1457bd16256 Mon Sep 17 00:00:00 2001 From: MariusWirtz Date: Mon, 16 Oct 2023 20:33:26 +0200 Subject: [PATCH] Quote pd.DataFrame and fix wrong indent --- TM1py/Services/CellService.py | 3 ++- TM1py/Services/HierarchyService.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TM1py/Services/CellService.py b/TM1py/Services/CellService.py index c72f5aa3..a1fe29e5 100644 --- a/TM1py/Services/CellService.py +++ b/TM1py/Services/CellService.py @@ -2914,7 +2914,8 @@ def extract_cellset_partition(self, cellset_id: str, skip_zeros: bool = False, skip_consolidated_cells: bool = False, skip_rule_derived_cells: bool = False, - sandbox_name: str = None) -> object: """ + sandbox_name: str = None) -> Dict: + """ Method to extract a cellset partition. Cellset partitions are a collection of cellset cells where they have a defined top left boundary, and bottom right boundary. Read More: https://www.ibm.com/docs/en/planning-analytics/2.0.0?topic=data-cellsets#dg_tm1_odata_get_cells__title__1 diff --git a/TM1py/Services/HierarchyService.py b/TM1py/Services/HierarchyService.py index edba1e7f..9b7fcbfd 100644 --- a/TM1py/Services/HierarchyService.py +++ b/TM1py/Services/HierarchyService.py @@ -390,7 +390,7 @@ def update_or_create_hierarchy_from_dataframe( self, dimension_name: str, hierarchy_name: str, - df: pd.DataFrame, + df: 'pd.DataFrame', element_column: str = None, verify_unique_elements: bool = False, verify_edges: bool = True,