-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 droplevel #735
Comments
Thanks for reporting the issue. Pyright is able to extract some type information from the implementation, so this case should still work. The problem is that when Pyright infers the return type of This fix will be in the next published version of Pyright. |
This is now fixed in version 1.1.44, which I just published. |
edit:
same for groupby and concat:
https://github.com/gokturksm/Fikirler/blob/master/so_6.py
Description
Pandas dataframe object unstacked, dropped NAs, and lastly dropped a level. Drop level returns a dataframe without the specified column level(s). This process has no problem but pyright says "Cannot access member "droplevel" for type "NoReturn" and "Member "droplevel" is unknownPyright (reportGeneralTypeIssues)". I don't exactly know why, so I'm opening this issue.
To Reproduce
https://github.com/gokturksm/Fikirler/blob/master/so_10.py#L27
Expected behavior
No problem would be produced by pyright.
Screenshots or Code
shared already
VS Code extension or command-line
extension
Additional context
disabled all other completion engines or python-related things.
"pyright.useLibraryCodeForTypes": true
The text was updated successfully, but these errors were encountered: