Errors with map/apply with pyright "basic" #1002
Unanswered
PhanAlexandre
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Pandas-stubs has made the trade-off of allowing only a subset of common types on Series to provide better operator/method support for those types. Whether this trade-off was a good decision is a different question :). Unfortunately, the Python static type system cannot model operators of container types properly (see for example microsoft/pyright#6549), except if you enumerate all of them which is not maintainable. I think it might be possible to at least allow the call but return Similar to #1001 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have some errors with pyright and pandas. I have ask the question there and they send me here.
microsoft/pyright#8985
Its seems the installing pandas-stubs resolve some of those errors (all but .apply(Path) on one computer but for the other its still showing errors on all line.
Here is some line of code that show this errors
Is it normal ?
I am on pandas 2.2.2
pylance v2024.9.1
on the computer with less errors pandas-stubs-2.1.4.231227
and the other pandas-stubs-2.2.2.240909
Beta Was this translation helpful? Give feedback.
All reactions