Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
47134b6b
Commit
47134b6b
authored
Mar 27, 2017
by
Mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix celldata
parent
b614aacd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
olapy/core/services/xmla_execute_tools.py
olapy/core/services/xmla_execute_tools.py
+13
-11
No files found.
olapy/core/services/xmla_execute_tools.py
View file @
47134b6b
...
...
@@ -301,23 +301,25 @@ class XmlaExecuteTools():
:return: CellData as string
"""
columns_loop
=
[]
if
mdx_execution_result
[
'columns_desc'
][
'columns'
].
keys
(
)
and
mdx_execution_result
[
'columns_desc'
][
'rows'
].
keys
():
if
(
len
(
mdx_execution_result
[
'columns_desc'
][
'columns'
].
keys
())
==
0
)
^
(
len
(
mdx_execution_result
[
'columns_desc'
][
'rows'
].
keys
())
==
0
):
if
self
.
executer
.
facts
in
mdx_execution_result
[
'columns_desc'
][
'columns'
].
keys
()
+
mdx_execution_result
[
'columns_desc'
][
'rows'
].
keys
():
'all'
].
keys
():
# iterate DataFrame
vertic
ally
# iterate DataFrame
horizont
ally
columns_loop
=
itertools
.
chain
(
*
[
tuple
for
tuple
in
mdx_execution_result
[
'result'
].
itertuples
(
index
=
False
)
mdx_execution_result
[
'result'
][
measure
]
for
measure
in
mdx_execution_result
[
'result'
].
columns
])
else
:
# iterate DataFrame horizontally
# iterate DataFrame vertically
columns_loop
=
itertools
.
chain
(
*
[
mdx_execution_result
[
'result'
][
measure
]
for
measure
in
mdx_execution_result
[
'result'
].
columns
tuple
for
tuple
in
mdx_execution_result
[
'result'
].
itertuples
(
index
=
False
)
])
cell_data
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment