FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

review how we duck-type non-numpy inputs · Issue #16402 · matplotlib/matplotlib · GitHub

Repository navigation

review how we duck-type non-numpy inputs #16402

Closed

Description

We currently do a fair amount of ad-hoc normalization / edge case handling for when we get pandas (or xarray or TF or ...) objects that are close to numpy but not quite (for example #16347 which uses a warning context manager which is extra not-thread-safe in other places we check of obj.values).

Can we centralize / streamline this logic?

Activity

  1. added this to the v3.3.0 milestone on Feb 3, 2020
  2. tacaswell commented on Feb 3, 2020

    MemberAuthor

    also xref: #16400

  3. modified the milestones: v3.3.0, v3.4.0 on May 22, 2020
  4. modified the milestones: v3.4.0, v3.5.0 on Jan 27, 2021
  5. jklymak commented on May 3, 2021

    Member

    We don't really ever get complaints from TF or xarray, so the practical question is how much do we special-case pandas, and who will set up the tests, and lead the charge on integration? This is, in my opinion, hampered by not having anyone on the lead-dev team who regularly uses pandas. It would be nice to try and entrain someone who did, who could advocate for changes and/or interface with the pandas project (who I have found are great to work with, but you know, are pushing their own things forward).

  6. timhoffm commented on May 3, 2021

    Member
  7. jklymak commented on May 3, 2021

    Member

    Yeah, unfortunately, thats not universal. xarray still uses .values.

  8. modified the milestones: v3.5.0, v3.6.0 on Sep 25, 2021
  9. oscargus commented on Feb 28, 2022

    Member

    Which libraries are we talking about? pandas, xarray, polars, tensorflow(?), ...

    I've added a test for xarray in #22560, which also centralizes this, but probably makes sense to add tests for all libraries that is of interest (there was one for pandas). (polars can not yet be installed with conda.)

  10. modified the milestones: v3.6.0, v3.7.0 on Aug 24, 2022
  11. github-actions commented on Mar 30, 2026

    This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

  12. timhoffm commented on Mar 30, 2026

    Member

    I close this. #22879 is a more recent discussion, and I think there are others as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL