-
Notifications
You must be signed in to change notification settings - Fork 770
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
No autocomplete for pandas.json_normalize #1738
Comments
Not sure there's anything relevant in the trace logs. Are these the ones you're interested in? import pandas as pd
pd.json
|
No, I'm afraid not; those are the Python extension's logs. The issue template had a guide on how to find our logs, but the instructions are mirrored here: https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue |
Sorry about that, here are the LS logs:
|
Hm, these logs imply that our pandas stubs are not being used at all, which doesn't make sense. Can you go check what's in |
Ah, in that case it's probably because the Pylance Pandas stubs are suppressed by the ones I installed myself to use with $ pip freeze | grep pandas
pandas==1.3.1
pandas-stubs==1.2.0.1 $ pip show pandas-stubs
Name: pandas-stubs
Version: 1.2.0.1
Summary: Type annotations for Pandas
Home-page: https://github.com/VirtusLab/pandas-stubs
Author: Zbigniew Królikowski
Author-email: zkrolikowski@virtuslab.com
License: MIT
Location: /Users/janosh/.venv/py39/lib/python3.9/site-packages
Requires:
Required-by: Will raise an issue about the missing pip install types-pandas
ERROR: No matching distribution found for types-pandas |
That repo doesn't publish to typeshed, it's a staging ground for WIP or lower quality stubs which are shipped with Pylance, but have yet to be put into typeshed or upstreamed. They also aren't published to PyPI (but you can copy them into your typings for modification). Pandas is a huge library, and it's unlikely typeshed would ever accept it. The pandas project had intended to integrate our stubs into their code, so that we can eliminate the stubs. I wasn't aware of https://github.com/VirtusLab/pandas-stubs; it seems to have been created after we started working on ours. @gramster You might be interested in taking a look. |
@jakebailey Hi! Thanks for your help. Perhaps not the same issue, but not sure that it worth to create a new issue. |
Closing old issue. If this is still a problem, please reopen with the information requested. thanks |
I agree with closing. Just one more question for @jakebailey: Is pandas still planning to integrate the pylance stubs into their code? |
Last I knew, yes, but I'm not currently working on Python anymore, so I can't really say anything with confidence having not been a part of those discussions in half a year. |
In a regular Python file, Pylance does not auto-complete
pandas.json_normalize
. Instead, I'm being shownpandas.read_json
:The text was updated successfully, but these errors were encountered: