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

fix tools._scalar_out to account for Series.item deprecation #794

Copy link
Copy link
Closed
@wholmgren

Description

@wholmgren
Issue body actions

tools._scalar_out calls input.item() to reduce an array or Series to a scalar. But the Series.item method is deprecated as of pandas 0.25, so we need to do something different. Maybe first call np.asarray so we know we have a numpy array and then we can call .item().

Also should replace the reserved argument name input with something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    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.