Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtensionDtype path should follow documentation #915

Merged

Conversation

pepelovesvim
Copy link
Contributor

Since at least pandas==1.2.0, one can access ExtensionDtype via pandas.api.extensions. See here. This is what pandas has on their documentation. Moreover, as of at least pandas==1.4.3, importing from pandas.core will no long satisfy static type checkers.

Since at least `pandas==1.2.0`, one can access `ExtensionDtype` via `pandas.api.extensions`. See: https://github.com/pandas-dev/pandas/blob/3e89b4c4b1580aa890023fc550774e63d499da25/pandas/api/extensions/__init__.py#L19

This is what `pandas` has on their documentation: https://pandas.pydata.org/docs/reference/api/pandas.api.extensions.ExtensionDtype.html#pandas.api.extensions.ExtensionDtype

Moreover, as of at least `pandas==1.4.3`, importing from `pandas.core` will no long satisfy static type checkers: 
https://github.com/pandas-dev/pandas/blob/96fe05979c13ef4575faaf65c673016e3432c175/pandas/__init__.py
@codecov
Copy link

codecov bot commented Aug 14, 2022

Codecov Report

Merging #915 (afb1587) into master (cf71e3a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #915   +/-   ##
=======================================
  Coverage   97.39%   97.39%           
=======================================
  Files          43       43           
  Lines        4179     4179           
=======================================
  Hits         4070     4070           
  Misses        109      109           
Impacted Files Coverage Δ
pandera/schemas.py 99.24% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@cosmicBboy cosmicBboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @pepelovesvim !

@cosmicBboy cosmicBboy merged commit 6a25faa into unionai-oss:master Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants