Skip to content

Commit

Permalink
Fix 2 minor issues
Browse files Browse the repository at this point in the history
- __sub__ in CaseAndSpaceInsensitiveSet
- value seperator in execute_mdx_dataframe
  • Loading branch information
MariusWirtz committed Sep 18, 2020
1 parent 8b9ffc4 commit 8c807e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions TM1py/Services/CellService.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ def extract_cellset_dataframe(
"""
raw_csv = self.extract_cellset_csv(cellset_id=cellset_id, top=top, skip=skip, skip_zeros=skip_zeros,
skip_rule_derived_cells=skip_rule_derived_cells,
skip_consolidated_cells=skip_consolidated_cells, value_separator="|",
skip_consolidated_cells=skip_consolidated_cells, value_separator='¦',
**kwargs)
if not raw_csv:
return pd.DataFrame()
Expand All @@ -1321,7 +1321,7 @@ def extract_cellset_dataframe(
# make sure all element names are strings and values column is derived from data
if 'dtype' not in kwargs:
kwargs['dtype'] = {'Value': None, **{col: str for col in range(999)}}
return pd.read_csv(memory_file, sep='|', **kwargs)
return pd.read_csv(memory_file, sep='¦', **kwargs)

@tidy_cellset
@require_pandas
Expand Down
2 changes: 1 addition & 1 deletion TM1py/Utils/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def __eq__(self, other):
def __sub__(self, other):
result = self.copy()
for entry in other:
result.remove(entry)
result.discard(entry)
return result


Expand Down

0 comments on commit 8c807e7

Please sign in to comment.