Skip to content

Commit

Permalink
Avoid execute_dataframe method to fail over 0 cell
Browse files Browse the repository at this point in the history
0 cells in REST API are returned as None.
We must not write None to csv string, but "" in order to produce NaN in
pandas dataframe
  • Loading branch information
MariusWirtz committed Aug 18, 2020
1 parent 71ae9bf commit 7450911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TM1py/Utils/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def build_csv_from_cellset_dict(
index_columns = ordinal % row_axis['Cardinality']
csv_entry.extend(extract_element_names_from_members(row_axis['Tuples'][index_columns]['Members']))

csv_entry.append(str(cell["Value"]))
csv_entry.append(str(cell["Value"] or ""))

csv_entries.append(value_separator.join(csv_entry))

Expand Down

0 comments on commit 7450911

Please sign in to comment.