-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
@pradhyumna85 hotfix to solve ValueError("Data must be 1-dimensional.") in boxcox, in case of non array input x and some lambda. #13305
Conversation
Hotfix to solve ValueError("Data must be 1-dimensional.") when only single value x (not array) is given with some value of lmbda.
hotfix to solve ValueError("Data must be 1-dimensional.") in boxcox
Is there a reference issue that explains the problem this is supposed to fix? |
I think @pradhyumna85 expects this (for example) to work without raising an exception:
It makes sense, because when
That is, move that This would change the behavior in a few cases. If any values in If we did this, the docstring would need to be updated to explain that the requirement that |
@WarrenWeckesser Exactly what I meant. As it make sense to boxcox a single value if lmbda is given. |
Thanks @pradhyumna85! I think this was just fixed in gh-12225. |
What does this implement/fix?
ValueError("Data must be 1-dimensional.") in boxcox (scipy.stats.boxcox), in case of non array input x and some lmbda.