-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Series.astype(object)
not supported anymore
#565
Comments
Seems to be causing the issue with import pandas as pd
df = pd.DataFrame([1, 1])
df = df.astype(object) yields
but I see that
|
Thanks for the report. We just introduced making We need to add pandas-stubs/pandas-stubs/core/series.pyi Line 1121 in 6829a99
and here: pandas-stubs/pandas-stubs/_typing.pyi Line 194 in 6829a99
Tagging @ramvikrams to do this and add appropriate test. |
Thanks I'll do the change |
* added object support to astype * Update test.py * Delete test.py
Describe the bug
Series.astype(object)
runs fine, and used to typecheck properly before, but since updatingmypy
and/orpandas-stubs
, it doesn't anymore. Didn't take the time to find a working version that did not throw errors.To Reproduce
Getting the following error message:
Please complete the following information:
OS:
Ubuntu 20.04.5
,uname -a
yields:Linux REDACTED 5.14.0-1058-oem #66-Ubuntu SMP Fri Feb 10 09:46:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
python version =
3.9.5
version of type checker:
mypy=1.0.1
version of installed
pandas-stubs
:pandas_stubs=1.5.3.230304
The text was updated successfully, but these errors were encountered: