Skip to content
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

Assure correct dtypes on attribute columns #1088

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

MariusWirtz
Copy link
Collaborator

In get_elements_dataframe function

Fixes #1069

In get_elements_dataframe function

Fixes #1069
@Kevin-Dekker
Copy link
Collaborator

Before installing this branch of tm1py, string attributes come back as floats:
image
After installing this branch of tm1py, string attributes come back as string:
image
After installing this branch of tm1py, numeric attributes remain numeric:
image
After installing this branch of tm1py, numeric attributes remain numeric, string attributes come back as string, when retrieving both:
image

Code to reproduce (create a stringattribute like 'StringAttr' and fill it with only numbers):

python df_from_use_blob_true = tm1.elements.get_elements_dataframe( dimension_name='account1', hierarchy_name='account1', elements=['Price', 'Units'], skip_weights=True, skip_parents=True, attributes=['StringAttr', ], use_blob=True)

@MariusWirtz MariusWirtz merged commit 4191d67 into master Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_elements_dataframe turns string arguments into floats when using use_blob
2 participants