pandas-stubs icon indicating copy to clipboard operation
pandas-stubs copied to clipboard

Public type stubs for pandas

Results 88 pandas-stubs issues
Sort by recently updated
recently updated
newest added

See comment 3 in https://github.com/microsoft/pyright/issues/5178#issuecomment-1566190533 > The pd.Series class is making use of a constrained TypeVar. I'm not sure why this was done, but it's almost certainly not the right...

The issue is that the type specification for the `weekday` argument in `pandas-stubs/_libs/tslibs/offsets.pyi` says that `weekday` is an `int`. But it can be a `weekday` class or an `int`. See...

**Describe the bug** Both according to the docs and the implementation it is valid to pass a python `range` object as the first argument to `pd.RangeIndex` **To Reproduce** ```python import...

good first issue
Index

**To Reproduce** 1. Provide a minimal runnable `pandas` example that is not properly checked by the stubs. ```python from pathlib import Path import pandas as pd folder = Path.cwd() files...

Numeric Operations
Strings

I described the problem here: https://github.com/microsoft/pyright/issues/5024 and also here: https://github.com/microsoft/pylance-release/issues/4289

Numeric Operations

**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** 1. Provide a minimal runnable `pandas` example that is not properly checked by the stubs....

**Describe the bug** Pylance shows error when using a timestamp as label for selecting data from a pandas series. **To Reproduce** 1. Provide a minimal runnable `pandas` example that is...

Indexing

See https://github.com/pandas-dev/pandas-stubs/pull/599#issue-1646327951 First time contributor followed instructions for setting up the environment and `pytest` failed due to `tk` not being installed. Have to test this by creating a brand new...

Right now, if we get a PR that fixes an issue for the nightly tests, the only way to test it is to approve the PR and merge it, and...

**Describe the bug** To perform complicated in-place operations, one can do `df.loc[:] = ...`, to simply assign the updated array. This is currently unsupported by `pandas-stubs`. **To Reproduce** ```python from...

Indexing