Skip to content

copy= arg not supported for asarray in numpy version 1.* #809

@rmalouf

Description

@rmalouf

The latest release added the copy= arg to WordCloud.to_array(), which in turn passes it to numpy.asarray(). Unfortunately this arg was added in numpy version 2.0 and isn't supported by earlier versions. Wordcloud claims compatibility with numpy >= 1.6.1, and a lot of machine learning/natural language processing libraries haven't updated to numpy > 2 so support for old versions is still really useful.

How important is maintaining the semantics of the copy option? It would be easy enough to just ignore the copy arg if using an older version of numpy, or to approximate the new behavior using array and/or asarray, but duplicating it exactly would be hard.

I can submit a PR for a fix for this, but I wanted to check on expectations first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions