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

GH1053 @ for DataFrame, eval in place for DataFrame, test migrations #1054

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 12 additions & 2 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
Loading
Loading