Commit e6180360 authored by mouadh's avatar mouadh

remove nan values

parent bdf28b68
...@@ -3,6 +3,8 @@ from __future__ import absolute_import, division, print_function ...@@ -3,6 +3,8 @@ from __future__ import absolute_import, division, print_function
import itertools import itertools
from collections import OrderedDict from collections import OrderedDict
import numpy as np
class XmlaExecuteTools(): class XmlaExecuteTools():
"""XmlaExecuteTools for generating xmla execute responses.""" """XmlaExecuteTools for generating xmla execute responses."""
...@@ -330,7 +332,7 @@ class XmlaExecuteTools(): ...@@ -330,7 +332,7 @@ class XmlaExecuteTools():
cell_data = "" cell_data = ""
index = 0 index = 0
for value in columns_loop: for value in columns_loop:
if value == -1: if np.isnan(value) :
value = '' value = ''
cell_data += """ cell_data += """
<Cell CellOrdinal="{0}"> <Cell CellOrdinal="{0}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment