ndarray icon indicating copy to clipboard operation
ndarray copied to clipboard

Add numpy example for assigning to a slice

Open dstansby opened this issue 3 years ago • 1 comments

To assign values to a slice of a numpy array it's possible to do e.g.:

import numpy as np
a = np.zeros((2, 2))
a[:, 0] = 1

It would be good to add how to do this in ndarray to the ndarray for numpy users docs

dstansby avatar Sep 23 '22 16:09 dstansby

How about something like PR #1210?

jturner314 avatar Sep 24 '22 22:09 jturner314

These examples would really be useful. Why weren't the CI failures addressed yet and the PR merged? Do you need more contributors? I am willing to contribute to this crate, although I am not really an expert in Rust.

nbro avatar Dec 26 '22 22:12 nbro