Skip to content

Conversation

@MariusWirtz
Copy link
Collaborator

No description provided.

Solves #159
Empty attribute values will no longer cause issues in TM1 v11
One record per member in resulting dataframe
@MariusWirtz
Copy link
Collaborator Author

#1040 now produces below dataframe for below dimension.

Previously when use_blob is True it would return only 1 record for e1 instead of 3

with TM1Service(**tm1params) as tm1:
    dimension_name = "_a"
    hierarchy_name = "_a"
    element_name = "e1"

    df = tm1.elements.get_elements_dataframe(dimension_name="_a", hierarchy_name="_a", use_blob=True)
    print(df.to_markdown())
_a Type Attribute level004_Weight level003_Weight level002_Weight level001_Weight level000_Weight level004 level003 level002 level001 level000
0 e1 Numeric m 0 0 0 1 1 c2 c1
1 e1 Numeric m 1 1 1 1 1 c7 c6 c5 c4 c3
2 e1 Numeric m 0 1 1 1 1 c11 c10 c9 c8
9 e2 Numeric 0 0 0 0

image

@MariusWirtz MariusWirtz merged commit f6cbabc into master Jan 30, 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.

2 participants