Skip to content
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

DOC: numpy.ma.expand_dims examples are not properly documented #22459

Open
jsaladich opened this issue Oct 20, 2022 · 1 comment
Open

DOC: numpy.ma.expand_dims examples are not properly documented #22459

jsaladich opened this issue Oct 20, 2022 · 1 comment

Comments

@jsaladich
Copy link

Issue with current documentation:

Hi!

I was checking how object np.newaxis behaves when I use a MaskedArray (like np.ma.is_masked() returns True).
The official documentation example in here is showing numpy.ma.expand_dims with normal ndarrays. While the old one here describes the example with MaskedArrays, solving my doubt. Shouldn't be the official documentation updated?

Just to make sure, if I use np.newaxis I assume that the mask of my array will be always respected, am I correct?

Thanks a lot for your help and the amazing job with Numpy!

Idea or request for content:

No response

@rajveer43
Copy link

@jsaladich Would liek to work on this

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

No branches or pull requests

2 participants