-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce shaped arg to execute_mdx_dataframe #893
Introduce shaped arg to execute_mdx_dataframe #893
Conversation
3e74789
to
9056758
Compare
Thanks for the review! Good catch on the index column. I will make sure we get rid of this incorrect column label. Regarding the formatting, this is kinda expected. The data frame is built differently and now the type is inherited. In the old The scientific notation is just a pandas thing. import pandas as pd
pd.options.display.float_format = '{:.5f}'.format |
Thanks for the update. Could this be a parameter as well? Thoughts? |
e3e4fb4
to
dac6867
Compare
It wouldn't break any existing applications, because it only applies when I can't reproduce the strange column header. Please post the code that produces the data frame. |
dac6867
to
e800c21
Compare
The unwanted column header has been removed. |
Inspired by
Kevin-Dekker@8ab9901#diff-5242c6c19161de7f529a4e5b0d0b33ca9c15f69be65fa5409881b3d8310ff655R2799-R2802
execute_mdx_dataframe
,execute_view_datafame
can be run withshaped=True
to retrieve a similar but not fully equivalent result toexecute_mdx_dataframe_shaped
.This allows retrieving a shaped data frame while specifying options that are not available in
execute_mdx_dataframe_shaped
. One example is the usage ofuse_iterative_json=True
anduse_blob=True
which optimizes memory usage during string to json / dict conversion prior to the creation of the data frame.Fixes #888