Change default value for element_type_column parameter to ElementType…#1414
Closed
wimgielis wants to merge 1 commit into
Closed
Change default value for element_type_column parameter to ElementType…#1414wimgielis wants to merge 1 commit into
wimgielis wants to merge 1 commit into
Conversation
… instead of Type tm1.elements.get_elements_dataframe() has a default value of "Type" for element_type_column. tm1.hierarchies.update_or_create_hierarchy_from_dataframe() has a default value of "ElementType" for element_type_column. This seems to add unnecessary downstream work.
Collaborator
|
@wimgielis I hear you. We can't change the name of the column now, as it wouldn't be backwards compatible and break countless scripts on upgrade. Any other ideas to avoid the pitfall and the renaming work (for the column name mismatch) when using both functions together? Perhaps we can make the |
Contributor
Author
|
Hello Marius, that suggestion seems good to me considering indeed that the
rename change in the code now is too late.
…------
Op ma 8 jun 2026 om 10:15 schreef Marius Wirtz ***@***.***>
*MariusWirtz* left a comment (cubewise-code/tm1py#1414)
<#1414 (comment)>
@wimgielis <https://github.com/wimgielis> I hear you.
It would have been the right decision to call it "ElementType" when we
initially wrote it.
We can't change the name of the column now, as it wouldn't be backwards
compatible and break countless scripts on upgrade.
Any other ideas to avoid the pitfall and the renaming work (for the column
name mismatch) when using both functions together?
Perhaps we can make the update_or_create_hierarchy_from_dataframe more
lenient to accept Type as the element type column if ElementType isn't
provided in the df?
Just thinking loud...
—
Reply to this email directly, view it on GitHub
<#1414?email_source=notifications&email_token=AEDHULPZ7IFMWPJKFJD23K346ZYYJA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTINRUGY3DOMZTGAZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4646673303>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEDHULKODC4EWD7YXQ26GLD46ZYYJAVCNFSM6AAAAACZ4PVZN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DMNBWGY3TGMZQGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Collaborator
|
Closed for #1418 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… instead of Type
tm1.elements.get_elements_dataframe() has a default value of "Type" for element_type_column. tm1.hierarchies.update_or_create_hierarchy_from_dataframe() has a default value of "ElementType" for element_type_column.
This seems to add unnecessary downstream work.