Series.loc()
typecheck fails with a lambda (Callable[[Any], Any]
)
#586
Labels
Series.loc()
typecheck fails with a lambda (Callable[[Any], Any]
)
#586
Describe the bug
Series.loc
does not accept a lambda (or more generally aCallable[[Any], Any]
) to filter the rows. of getitem.I suspected this is the case for
pd.DataFrame
too, but I haven't tested it.To Reproduce
Using
mypy
.Error message:
Please complete the following information:
uname -a
:5.14.0-1058-oem #66-Ubuntu SMP Fri Feb 10 09:46:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
mypy 1.1.1
pandas-stubs
:1.5.3.230304
The text was updated successfully, but these errors were encountered: