-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Compatibility issues with numpy's fromnumeric.py #12644
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
As mentioned in #12600, I'll tackle this as a follow-up once these PR's are landed. |
as discussed we basically have 2 classes of issues:
|
IMHO we should not be striving to make pandas API compatible with NumPy (except offering an |
@wesm: Agreed. I think in this case though trying to "align" the API with |
@gfyoung numpy's behavior is a bug really, in that it shouldn't just call |
@jreback : Right, I guess "align" gives the connotation that |
Well, now |
My |
maybe add |
prob could start with seeing which functions call |
A massive PR (#12810) addressing this issue is finally up. There were a lot more incompatibilities than I had expected. Hopefully this PR should address almost if not all of them. |
Augment pandas array-like methods with appropriate parameters (generally, '*args' and '**kwargs') so that they can be called via analogous functions in the numpy library they are defined in 'fromnumeric.py'. Closes pandas-devgh-12638. Closes pandas-devgh-12644. Closes pandas-devgh-12687.
A recent spate of issues/PR's stemming from calling functions defined in numpy's
fromnumeric.py
module here that have identically-named but differently implemented methods/functions inpandas
is indicative of a much larger compatibility issue between the two libraries with this module. A thorough overview of all of the functions from thefromnumeric.py
module and cross-referencing them to implementations inpandas
is needed to avoid similar issues.Relevant PRs:
#12413 (issue: #12238)
#12603 (issue: #12600)
#12638
#7325 (from
numpy
)The text was updated successfully, but these errors were encountered: