Skip to content

Feature request: vectorized character slice #8579

@mwtoews

Description

@mwtoews

Inspecting numpy.core.defchararray and the online docs for string operations, it seems there is a missing feature to slice a string array in a vectorized way.

It would be nice to have numpy.core.defchararray.slice(a, start, stop[, step])

This Q/A seems to reflect this missing feature, with a few example implementations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions