-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: incorrect type hint for subset in dropna #49702
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
Comments
Hi, Thanks for your report. Are you using our stubs? If yes, this should go there too |
The screenshot looks like VS code, I think that's what is using the stubs even if they aren't in your Python environment. cc @Dr-Irv |
Yes, most likely. Microsoft bundles If that's the case, please create the issue there. |
Thanks @rhshadrach @Dr-Irv Indeed it's pylance in vscode... and they do use pandas-stubs. @phofl could you transfer the issue to pandas-stubs? |
You have to open another issue in the stubs repo |
Closing this as it is handled in the pandas-stubs. |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
pandas/pandas/core/frame.py
Lines 6413 to 6573 in 91111fd
Expected Behavior
IndexLabel | None
might should be any array like object.A similar issue: #48098
Installed Versions
INSTALLED VERSIONS
commit : 91111fd
python : 3.9.12.final.0
python-bits : 64
OS : Darwin
OS-release : 22.1.0
Version : Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:52 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8112
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.5.1
numpy : 1.23.1
pytz : 2022.5
dateutil : 2.8.2
setuptools : 65.5.0
pip : 22.3
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.5.0
pandas_datareader: None
bs4 : 4.11.1
bottleneck : 1.3.5
brotli :
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : 3.6.1
numba : None
numexpr : 2.8.3
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.9.3
snappy : None
sqlalchemy : None
tables : None
tabulate : 0.8.10
xarray : None
xlrd : None
xlwt : None
zstandard : None
tzdata : None
The text was updated successfully, but these errors were encountered: