You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Get_Elements_Dataframe function fails when there is an attribute with same name as the dimension. There is a uniqueness error produced.
ValueError: The column label 'Dimension Name' is not unique.
Because the attribute data is joined back to the element data there has to be a unique key/column (IE the dimension name column that holds the element names)
To Reproduce
Create a dimension called MyDim and then create an attribute for elements in that dimension called MyDim.
Expected behavior
I have modified the code to add a suffix to any attributes that have the same name as the dimension which solves the issue. Not sure if this is the best way to go about this or not.