Skip to content

Conversation

@MariusWirtz
Copy link
Collaborator

Successor of #1026

@MariusWirtz
Copy link
Collaborator Author

@151N3 please review and approve.

I renamed it to comply with existing functions in the service like clear_with_mdx or write_dataframe
I also added more type-checking. I understand that for dimensions with elements in the dataframe the dimension_mapping must provide a single hierarchy. For dimensions that are not included in the dataframe, the dimension_mapping can provide a list of hierarchies. Ist that correct?

@151N3
Copy link
Contributor

151N3 commented Jan 23, 2024

@151N3 please review and approve.

I renamed it to comply with existing functions in the service like clear_with_mdx or write_dataframe I also added more type-checking. I understand that for dimensions with elements in the dataframe the dimension_mapping must provide a single hierarchy. For dimensions that are not included in the dataframe, the dimension_mapping can provide a list of hierarchies. Ist that correct?

Yes, you are corret, just as small detail, if dimensions are not included in the dataframe you can provide one hierarchy as a string or a list of hierarchies. But it can be a list of one as well. Its just for lazy people that don't want to make a list with one element 😄

Copy link
Contributor

@151N3 151N3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MariusWirtz ,
looks much better now. Thank you

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.

3 participants