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

This is mostly a meta issue, I've noticed that when upgrading the stubs for version 2.1.0 the deprecated methods/overloads have been immediately removed. We now have `typing_extensions.deprecated`, which I think...

**Describe the bug** When subclassing pandas DataFrame by subclassing _constructor, type hints indicate that any return from a loc, iloc, etc... indexing is a pandas DataFrame not the subclass. **To...

Oh , the upstream docs of this, and other label size usages, will need to be updated to accept `float | str | None` (See the [matplotlib docs](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.tick_params.html)). I typed...

`NoDefault` should never be used by users, but is useful when using `stubtest` to detect inconsistencies between the stubs and the source. See https://github.com/pandas-dev/pandas-stubs/pull/848#issuecomment-1890472766 Should consider renaming `NoDefault` in the...

**Describe the bug** Pyright doesn't seem to like something about using `converters=...` with `read_excel` **To Reproduce** 1. Provide a minimal runnable `pandas` example that is not properly checked by the...

good first issue
IO Excel

### Feature Type - [ ] Adding new functionality to pandas - [X] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description I...

Enhancement

**Describe the bug** Upgrading from 2.0.1 to 2.1.1 and now I get errors about Series and Index that aren't helpful. It should not be necessary to duplicate type hints on...

```python import pandas as pd anomalies = pd.DatetimeIndex({ "Jan. 1, 2008": "New Year’s Day", "Jan. 21, 2008": "Martin Luther King Jr. Day", "Feb. 18, 2008": "Washington’s Birthday", "Mar. 9, 2008":...

Index

**Describe the bug** Type annotation for `pd.Series` uses `Sequence[Any]` instead of `Iterable[Any]`, but the [documentation](https://pandas.pydata.org/docs/reference/api/pandas.Series.html) states that argument can be an iterable. **To Reproduce** 1. Provide a minimal runnable `pandas`...

Shortened code: ``` reveal_type(start) # Union[datetime.datetime, datetime.date, pandas._libs.tslibs.timestamps.Timestamp, None]" reveal_type(end) # Union[datetime.datetime, datetime.date, pandas._libs.tslibs.timestamps.Timestamp, None]" concat_df = concat_df.sort_index().loc[start:end, :] ``` Error: > error: Slice index must be an integer or...

mypy bug