Skip to content
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

Pylance + Pandas #195

Closed
mhlg opened this issue Dec 3, 2021 · 3 comments
Closed

Pylance + Pandas #195

mhlg opened this issue Dec 3, 2021 · 3 comments
Labels
bug Something isn't working typestub

Comments

@mhlg
Copy link

mhlg commented Dec 3, 2021

Environment data

  • Language Server version: v2021.11.2
  • OS and version: macOS 10.15.7
  • Python version: 3.8.2

Actual behaviour

I have 242 error all related to the pandas library but I would not put # type: ignore everywhere is there a solution?

The first is

dr = pandas.date_range(start='2021-12-01', periods=24, freq='H')
time = dr.strftime('%H:%M:%S')

Logs

Cannot access member "strftime" for type "DatetimeIndex"

@bschnurr
Copy link
Member

bschnurr commented Dec 3, 2021

Thanks for the issue. Looks like our pandas stubs are missing this.

@gramster gramster added the bug Something isn't working label Feb 24, 2022
@kreha1
Copy link

kreha1 commented Apr 19, 2022

Not sure if this is the correct place, but I'd like to report other missing method stubs for pandas:

  • tolist() on pandas.core.indexes.base.Index
  • fullmatch() on pandas.core.strings.accessor.StringMethods

@bschnurr bschnurr transferred this issue from microsoft/pylance-release Apr 27, 2022
@gramster
Copy link
Member

We are no longer maintaining the pandas stubs; please open issues at https://github.com/pandas-dev/pandas-stubs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typestub
Projects
None yet
Development

No branches or pull requests

4 participants