Skip to content

Add numpy example for assigning to a slice #1209

Closed

Description

@dstansby

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

Activity

  1. added
    docsIssues relating primarily to documentation or API visibility.
    on Sep 24, 2022
  2. jturner314 commented on Sep 24, 2022

    @jturner314
    Member

    How about something like PR #1210?

  3. nbro commented on Dec 26, 2022

    @nbro
    Contributor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsIssues relating primarily to documentation or API visibility.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions