Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
strategy:
fail-fast: false
matrix:
# Don't use macos-latest because it is arm64
os: [ubuntu-latest, windows-latest, macos-13]
# macos-latest is arm
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]

name: OS ${{ matrix.os }} - Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion pandas-stubs/_version.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version_json: str = ...

def get_versions(): ...

_stub_version: Literal["2.2.3.241009"]
_stub_version: Literal["2.2.3.241126"]
16 changes: 13 additions & 3 deletions pandas-stubs/core/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,12 @@ class DataFrame(NDFrame, OpsMixin):
def dot(self, other: DataFrame | ArrayLike) -> DataFrame: ...
@overload
def dot(self, other: Series) -> Series: ...
def __matmul__(self, other): ...
@overload
def __matmul__(self, other: DataFrame) -> DataFrame: ...
@overload
def __matmul__(self, other: Series) -> Series: ...
@overload
def __matmul__(self, other: np.ndarray) -> DataFrame: ...
def __rmatmul__(self, other): ...
@overload
@classmethod
Expand Down Expand Up @@ -620,7 +625,12 @@ class DataFrame(NDFrame, OpsMixin):
def query(
self, expr: _str, *, inplace: Literal[False] = ..., **kwargs
) -> DataFrame: ...
def eval(self, expr: _str, *, inplace: _bool = ..., **kwargs): ...
@overload
def eval(self, expr: _str, *, inplace: Literal[True], **kwargs) -> None: ...
@overload
def eval(
self, expr: _str, *, inplace: Literal[False] = ..., **kwargs
) -> Scalar | np.ndarray | DataFrame | Series: ...
AstypeArgExt: TypeAlias = (
AstypeArg
| Literal[
Expand Down Expand Up @@ -1493,7 +1503,7 @@ class DataFrame(NDFrame, OpsMixin):
self,
other: DataFrame | Series | list[DataFrame | Series],
on: _str | list[_str] | None = ...,
how: JoinHow = ...,
how: MergeHow = ...,
lsuffix: _str = ...,
rsuffix: _str = ...,
sort: _bool = ...,
Expand Down
2 changes: 0 additions & 2 deletions pandas-stubs/core/groupby/grouper.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,3 @@ class Grouping:
def result_index(self) -> Index: ...
@cache_readonly
def group_index(self) -> Index: ...
@cache_readonly
def groups(self) -> dict[Hashable, np.ndarray]: ...
8 changes: 0 additions & 8 deletions pandas-stubs/core/indexes/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,6 @@ class Index(IndexOpsMixin[S1]):
def is_unique(self) -> bool: ...
@property
def has_duplicates(self) -> bool: ...
def is_boolean(self) -> bool: ...
def is_integer(self) -> bool: ...
def is_floating(self) -> bool: ...
def is_numeric(self) -> bool: ...
def is_object(self) -> bool: ...
def is_categorical(self) -> bool: ...
def is_interval(self) -> bool: ...
def holds_integer(self): ...
@property
def inferred_type(self) -> _str: ...
def __reduce__(self): ...
Expand Down
8 changes: 2 additions & 6 deletions pandas-stubs/core/strings.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,9 @@ class StringMethods(NoNewAttributesMixin, Generic[T, _TS, _TM]):
self, pat: str = ..., *, n: int = ..., expand: bool = ..., regex: bool = ...
) -> T: ...
@overload
def rsplit(
self, pat: str = ..., *, n: int = ..., expand: Literal[True], regex: bool = ...
) -> _TS: ...
def rsplit(self, pat: str = ..., *, n: int = ..., expand: Literal[True]) -> _TS: ...
@overload
def rsplit(
self, pat: str = ..., *, n: int = ..., expand: bool = ..., regex: bool = ...
) -> T: ...
def rsplit(self, pat: str = ..., *, n: int = ..., expand: bool = ...) -> T: ...
@overload
def partition(self, sep: str = ...) -> pd.DataFrame: ...
@overload
Expand Down
1 change: 0 additions & 1 deletion pandas-stubs/io/parquet.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ def read_parquet(
engine: ParquetEngine = ...,
columns: list[str] | None = ...,
storage_options: StorageOptions = ...,
use_nullable_dtypes: bool = ...,
**kwargs: Any,
) -> DataFrame: ...
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pandas-stubs"
version = "2.2.3.241009"
version = "2.2.3.241126"
description = "Type annotations for pandas"
authors = ["The Pandas Development Team <[email protected]>"]
license = "BSD-3-Clause"
Expand Down Expand Up @@ -47,7 +47,7 @@ black = ">=23.3.0"
isort = ">=5.12.0"
openpyxl = ">=3.0.10"
# for tables, MacOS gives random CI failures on 3.9.2
tables = { version = "==3.9.2", python = "<4" } # 3.8.0 depends on blosc2 which caps python to <4
tables = { version = "==3.10.1", python = "<4" } # 3.8.0 depends on blosc2 which caps python to <4
lxml = ">=4.9.1"
pyreadstat = ">=1.2.0"
xlrd = ">=2.0.1"
Expand Down
Loading