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

Issue/empty string as nan in attribute #1045

Merged
merged 6 commits into from
Jan 31, 2024

Conversation

MariusWirtz
Copy link
Collaborator

@Kevin-Dekker I cherry-picked your commits on top of the current master.

Kevin-Dekker and others added 5 commits January 27, 2024 19:13
…mdx_dataframe function.

By passing the empty_dimension_attribute_as_string we expect the resulting dataframe to contain empty strings for empty string attribute values requested as dimension properties in an mdx.
… to the build_dataframe_from_csv function.

Passing attribute_types_by_dimension allows fillna('') for string attributes while avoiding filling numeric attributes with empty strings in case they have to be loaded as str.
Passing empty_string_attribute_as_string indicates whether nan should be filled with '' for string attributes. Default is False, for backwards compatibility.
…types by dimension based on retrieved cellset.
@MariusWirtz MariusWirtz force-pushed the issue/empty-string-as-nan-in-attribute branch from de9ca52 to 7a16e06 Compare January 30, 2024 17:47
@MariusWirtz
Copy link
Collaborator Author

@Kevin-Dekker I had to make a few small adjustments but now all tests pass.

Please take a look at my changes 7a16e06 and approve

@MariusWirtz MariusWirtz added this to the 2.0 milestone Jan 31, 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