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

Sign up
Appearance settings

ENH: Implement "Pydantic protocol" #53999

Open
Labels
Enhancement Needs DiscussionRequires discussion from core team before further action Typingtype annotations, mypy/pyright type checking
@Kludex

Description

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

I wish I could use Pydantic with Pandas without the need of customization or external library.

Feature Description

The idea would be to implement the __get_pydantic_core_schema__ mentioned here on pd.Series, pd.DataFrame, and others.

Alternative Solutions

There's a PR in pydantic-extra-types to include a custom type for pd.Series.

Additional Context

We have more information on the migration guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement Needs DiscussionRequires discussion from core team before further action Typingtype annotations, mypy/pyright type checking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /