Skip to content

Use with Pandas? #1466

Answered by erictraut
dlozeve asked this question in Q&A
Feb 9, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

The pandas maintainers are working on incorporating types in an upcoming version of the library. Until then, you will need to do one of the following:

  1. If you're primarily interested in completion suggestions, you can download and install a work-in-progress set of type stubs from this site.
  2. You can disable the useLibraryCodeForTypes setting (which I presume you've enabled). This will tell pyright not to attempt to infer types from library sources (a common source of false positives) and treat all types as "unknown" (Any) when a type stub is not present. If your intent is to do type checking, this may be your only feasible option at this point. It will eliminate the false positives, but it…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dlozeve
Comment options

@erictraut
Comment options

@dlozeve
Comment options

@erictraut
Comment options

@dlozeve
Comment options

Answer selected by dlozeve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants