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

Bug: write_dataframe is not case and space insensitive, inconsistent behaviour #1181

Closed
Mr-SabyasachiBose opened this issue Oct 18, 2024 · 2 comments · Fixed by #1204
Closed
Labels

Comments

@Mr-SabyasachiBose
Copy link
Contributor

Describe the bug
If the dataframe has same element name with different case and space, the write_dataframe is sometime aggregating
the values, sometime picking one or the other.

To Reproduce
Tested on a 2D cube with elements, Child1 and Value. attaching the code in the image. sample data


data = {'Sample Dim':['Child1','Child1'],
             'Measure':['Value','Value'],
             'Value':[12,15]
             }

data = {'Sample Dim':['Child1','Child    1'],
             'Measure':['Value','Value'],
             'Value':[12,15]
             }

data = {'Sample Dim':['Child1','child1'],
             'Measure':['Value','Value'],
             'Value':[12,15]
             }

dataframe

Expected behavior
Every time the cube should have 27 (considering it will always aggregate duplicate entries), or the last record i.e. 15 (if not aggregating)

Version
TM1py [2.0]
TM1 Server Version: [e.g. 11.8]

Additional context
Add any other context about the problem here.

@Mr-SabyasachiBose
Copy link
Contributor Author

The cube has been manually cleared before each upload attempt.

@MariusWirtz
Copy link
Collaborator

Good catch! We need to address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants