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

pandas.api.types imports #103

Closed
janosh opened this issue Oct 15, 2021 · 1 comment
Closed

pandas.api.types imports #103

janosh opened this issue Oct 15, 2021 · 1 comment
Assignees

Comments

@janosh
Copy link

janosh commented Oct 15, 2021

Importing from pandas.api.types causes MypyError

"pandas.api.types" has no attribute "is_numeric_dtype"

Minimal example:

from pandas.api.types import is_numeric_dtype, is_string_dtype

srs = pd.Series([1,2,3])

is_numeric_dtype(srs)
>>> True
is_string_dtype(srs)
>>> False
@zkrolikowski-vl zkrolikowski-vl self-assigned this Oct 15, 2021
@zkrolikowski-vl
Copy link
Collaborator

No solution was provided for problem but pandas-stubs has moved to another repository and will now be managed alongside pandas itself: https://github.com/pandas-dev/pandas-stubs

You might try using the newest version pip install pandas-stubs==1.4.2.220626 which comes from that repository. If it doesn't work please considering opening an issue in the new repository.

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

No branches or pull requests

2 participants