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] allow metric classes to be called with multilevel arg if series is not hierarchical #6418

Merged
merged 3 commits into from
May 19, 2024

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented May 14, 2024

This PR allows metric classes to be called with multilevel arg in all cases, if the series is not hierarchical. Previously, this would crash the metric.

This PR changes behaviour in this degenerate case so a single-entry pd.DataFrame is returned.

Fixes #6413

@fkiraly fkiraly added bugfix Fixes a known bug or removes unintended behavior module:metrics&benchmarking metrics and benchmarking modules labels May 14, 2024
@fkiraly fkiraly merged commit 0ce45c3 into main May 19, 2024
53 checks passed
@fkiraly fkiraly deleted the metric-df-coercion branch May 19, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug or removes unintended behavior module:metrics&benchmarking metrics and benchmarking modules
Projects
None yet
1 participant