Skip to content

ma.sum() does not support keepdims argument #4537

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

Closed
abalkin opened this issue Mar 23, 2014 · 2 comments
Closed

ma.sum() does not support keepdims argument #4537

abalkin opened this issue Mar 23, 2014 · 2 comments

Comments

@abalkin
Copy link
Contributor

abalkin commented Mar 23, 2014

>>> np.sum([1, 2], keepdims=True)
array([3])
>>> ma.sum([1, 2], keepdims=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "numpy/ma/core.py", line 6025, in __call__
    return method(MaskedArray(a), *args, **params)
TypeError: sum() got an unexpected keyword argument 'keepdims'
@seberg
Copy link
Member

seberg commented Apr 11, 2016

Fixed in master.

@AvlWx2014
Copy link

I'm just running in to this issue with np.ma.mean(). Was that method fixed as part of this effort?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants