Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MAINT: what should we do about string ufuncs that return lists? #26176

Copy link
Copy link
Open
@ngoldbaum

Description

@ngoldbaum
Issue body actions

We talked a little bit about this in #25993 but didn't resolve things.

Currently, the following functions don't have implementations in np.strings:

# Removed from namespace until behavior has been crystalized
# "join", "split", "rsplit", "splitlines",

We should figure out the appropriate API for adding fast ufuncs for these. I'm actually not sure if it's possible to write ufuncs for these given that they have an unknown number of outputs for each array element, you really need ragged arrays for this to make sense. Although that said, we could also return object arrays of python lists or just leave them with the _vec_string implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.