Skip to content

[MNT]: use to_numpy more #21036

@jklymak

Description

@jklymak

Summary

Both pandas and xarray now have a to_numpy method on their data objects. We only use to_numpy once in cbook._reshape_2D, and instead usually check .values. We probably should be using to_numpy more if that is indeed the new idiom for converting?

Ping @shoyer for xarray and @TomAugspurger for pandas, though please feel free to redirect as appropriate, you are being picked upon because you've interacted with us before 😉.

One thing I note for to_numpy and dates is that it does not seem to convert to numpy datetime64 or timedelta64 for either package - it'd be nice if they did!

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy