Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ERR: stat function kwarg interpretation #12301
Comments
|
these functions accept As I don't want to have pull-requests would be welcome |
jreback
changed the title from
max kwarg interpretation to stat function kwarg interpretation
Feb 12, 2016
jreback
changed the title from
stat function kwarg interpretation to ERR: stat function kwarg interpretation
Feb 12, 2016
jreback
added this to the
Next Major Release
milestone
Feb 12, 2016
|
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. |
gfyoung
referenced
this issue
Feb 13, 2016
Closed
BUG: Prevent abuse of kwargs in stat functions #12318
jreback
modified the milestone: 0.18.0, Next Major Release
Feb 13, 2016
gfyoung
added a commit
to gfyoung/pandas
that referenced
this issue
Feb 14, 2016
|
|
gfyoung |
f9de80f
|
jreback
added a commit
that referenced
this issue
Feb 14, 2016
|
|
gfyoung + jreback |
3d2f115
|
|
closed by #12318 |
mikeyshulman commentedFeb 11, 2016
df.max(axi=1)does not throw an error and evaluates todf.max()