Comments (5)
The type stub for pandas bundled with pylance is from microsoft/python-type-stubs. You probably should open an issue there. However, I find the response rate quite low in that repo.
A better approach is to open an issue or even better a PR in pandas itself. The pandas codebase seems to accept progressive addition of type annotations. For example, they accepts a PR to add type annotation for read_html()
. Considering that read_excel()
bears strong resemblance to read_excel()
, your PR will very likely get picked up.
from python-type-stubs.
We're the maintainers of both repos, so we will see both issue trackers and handle them when we have the opportunity.
Our stubs override what pandas ships (IIRC we are still more type complete, and the effort to have them port our changes back hasn't happened), so we still have to apply fixes in our repo when possible.
I'm pretty sure that iloc slice issue was fixed last week in ce88d83
from python-type-stubs.
@jakebailey Thank you for the clarification. I have been having the wrong impression that pylance/pyright treats the type annotations in the original libraries as ground truth, and only uses bundled type stubs as a last resort.
While we are here, I think it's a good idea for pylance to provide a table of which bundled type stub coming from which upstream repo. So that user who encounters errors related to bundled type stubs can go to the correct repo to open an issue, instead of jamming pylance's issue tracker.
For example, I had spent some effort searching around to finally figure out the openpyxl stubs bundled by pylance is actually from https://github.com/MartinThoma/openpyxl-stubs, submit a PR there to fix an issue opened in pylance. Quite a journey. Would be easier if pylance tells us where it pulls each bundled type stubs from.
from python-type-stubs.
I have been having the wrong impression that pylance/pyright treats the type annotations in the original libraries as ground truth, and only uses bundled type stubs as a last resort.
It only prefers stubs from libraries over typeshed/bundled stubs if the library is py.typed
, which pandas isn't. (And I don't think it's ready for that distinction quite yet anyhow.)
from python-type-stubs.
Pandas has been upstreamed and no longer maintained here. https://github.com/pandas-dev/pandas-stubs I think this can be closed.
from python-type-stubs.
Related Issues (20)
- Gym stubs are out of date HOT 1
- type of subplots is partially unknown in matplotlib plt.subplots HOT 3
- Module is not callable HOT 3
- [cv2] cv2.add can accept scalar value, not only `Mat`
- mypy report error when import cv2
- Incorrect return type on `matplotlib.pyplot.subplot_mosaic`
- [Matplotlib] Uncorrect type-hint in `font_manager.FontProperties` HOT 2
- matplotlib colors.py stub HOT 4
- Why does the dict returned by matplotlib.pyplot.subplot_mosaic have Text as key type? HOT 3
- matplotlib missing markers
- Ignore - Misplaced Ticket
- Add how to install and use section to README HOT 6
- Error in type stubs of matplotlib for 'widgets.Slider' HOT 1
- `cv2` missing function `imwritemulti` HOT 1
- Errors given by pylance on networkx HOT 1
- Run `black` and `isort` automatically or as a hygiene check HOT 1
- Does `utils/build_bundle/build.sh` serve any purpose?
- Deprecated warning: center_of_mass and label have been moved from scipy.ndimage.measurements HOT 13
- Cannot import sklearn.preprocessing.TargetEncoder HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-type-stubs.