-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ERR: stat function kwarg interpretation #12301
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
Comments
these functions accept As I don't want to have pull-requests would be welcome |
I'm not entirely sure how all of these functions are set up, but when I tried taking the IINM it seems that this tolerance for "invalid" arguments is quite ingrained into the codebase, so much so that even the tests seem to allow it. |
Unless someone can explain otherwise, it seems that the best that can be done is to check whether |
what u can do is pop out from other kwargs iirc out is the only arg that we accept that's not listed (and we don't want it) but allow for compat |
How about just accepting any arguments that currently break the tests? |
yeah that too |
the reason iirc I did this in the first place because of the API changes in various versions of numpy and didnt want to have to deal with strict checking in case something was added |
I am ok with fine grained checking |
That's fair. It's too bad that there are so many naming conflicts between the |
not sure what u mean by naming conflicts |
What I meant by "conflict" was that the trace back always kept originating to function calls in the |
btw we first try to dispatch to bottleneck (if installed), then numpy. things are tested with both. |
Filters kwargs argument in stat functions to prevent the passage of clearly invalid arguments while at the same time maintaining compatibility with analogous numpy functions. Closes pandas-devgh-12301.
Addresses issue #12301 by filtering `kwargs` argument in stat functions to prevent the passage of clearly invalid arguments while at the same time maintaining compatibility with analogous `numpy` functions. Author: gfyoung <[email protected]> Closes #12318 from gfyoung/kwarg_remover and squashes the following commits: f9de80f [gfyoung] BUG: Prevent abuse of kwargs in stat functions
closed by #12318 |
df.max(axi=1)
does not throw an error and evaluates todf.max()
The text was updated successfully, but these errors were encountered: