diff --git a/pandas-stubs/core/frame.pyi b/pandas-stubs/core/frame.pyi index 7331c0d19..04314d144 100644 --- a/pandas-stubs/core/frame.pyi +++ b/pandas-stubs/core/frame.pyi @@ -668,7 +668,6 @@ class DataFrame(NDFrame, OpsMixin): allow_duplicates: _bool = ..., ) -> None: ... def assign(self, **kwargs) -> DataFrame: ... - def lookup(self, row_labels: Sequence, col_labels: Sequence) -> np.ndarray: ... def align( self, other: NDFrameT, @@ -1691,7 +1690,6 @@ class DataFrame(NDFrame, OpsMixin): percentiles: list[float] | None = ..., include: Literal["all"] | list[Dtype] | None = ..., exclude: list[Dtype] | None = ..., - datetime_is_numeric: _bool | None = ..., ) -> DataFrame: ... def div( self, @@ -1850,7 +1848,6 @@ class DataFrame(NDFrame, OpsMixin): inplace: _bool = ..., axis: Axis | None = ..., level: Level | None = ..., - try_cast: _bool = ..., ) -> DataFrame: ... def max( self, @@ -2107,7 +2104,6 @@ class DataFrame(NDFrame, OpsMixin): numeric_only: _bool = ..., **kwargs, ) -> Series: ... - def slice_shift(self, periods: int = ..., axis: Axis = ...) -> DataFrame: ... def squeeze(self, axis: Axis | None = ...): ... def std( self, @@ -2143,14 +2139,7 @@ class DataFrame(NDFrame, OpsMixin): ) -> Series: ... def swapaxes(self, axis1: Axis, axis2: Axis, copy: _bool = ...) -> DataFrame: ... def tail(self, n: int = ...) -> DataFrame: ... - def take( - self, - indices: list, - axis: Axis = ..., - is_copy: _bool | None = ..., - **kwargs, - ) -> DataFrame: ... - def tshift(self, periods: int = ..., freq=..., axis: Axis = ...) -> DataFrame: ... + def take(self, indices: list, axis: Axis = ..., **kwargs) -> DataFrame: ... def to_clipboard( self, excel: _bool = ..., sep: _str | None = ..., **kwargs ) -> None: ... @@ -2289,7 +2278,6 @@ class DataFrame(NDFrame, OpsMixin): axis: Axis | None = ..., copy: _bool = ..., ) -> DataFrame: ... - # def tshift def tz_convert( self, tz, @@ -2329,7 +2317,6 @@ class DataFrame(NDFrame, OpsMixin): inplace: _bool = ..., axis: Axis | None = ..., level: Level | None = ..., - try_cast: _bool = ..., ) -> DataFrame: ... # Move from generic because Series is Generic and it returns Series[bool] there def __invert__(self) -> DataFrame: ... diff --git a/pandas-stubs/core/generic.pyi b/pandas-stubs/core/generic.pyi index e1032a1d2..7af030803 100644 --- a/pandas-stubs/core/generic.pyi +++ b/pandas-stubs/core/generic.pyi @@ -197,7 +197,6 @@ class NDFrame(indexing.IndexingMixin): self, buf: FilePath | WriteBuffer[str], columns: list[_str] | None = ..., - col_space: int | None = ..., header: _bool | list[_str] = ..., index: _bool = ..., na_rep: _str = ..., @@ -223,7 +222,6 @@ class NDFrame(indexing.IndexingMixin): self, buf: None = ..., columns: list[_str] | None = ..., - col_space: int | None = ..., header: _bool | list[_str] = ..., index: _bool = ..., na_rep: _str = ..., @@ -294,9 +292,7 @@ class NDFrame(indexing.IndexingMixin): errors: _str = ..., storage_options: StorageOptions = ..., ) -> _str: ... - def take( - self, indices, axis=..., is_copy: _bool | None = ..., **kwargs - ) -> Self: ... + def take(self, indices, axis=..., **kwargs) -> Self: ... def __delitem__(self, idx: Hashable) -> None: ... def reindex_like( self, @@ -474,7 +470,6 @@ class NDFrame(indexing.IndexingMixin): inplace: _bool = ..., axis=..., level=..., - try_cast: _bool = ..., ): ... def mask( self, @@ -484,11 +479,8 @@ class NDFrame(indexing.IndexingMixin): inplace: _bool = ..., axis=..., level=..., - try_cast: _bool = ..., ): ... def shift(self, periods=..., freq=..., axis=..., fill_value=...) -> Self: ... - def slice_shift(self, periods: int = ..., axis=...) -> Self: ... - def tshift(self, periods: int = ..., freq=..., axis=...) -> Self: ... def truncate(self, before=..., after=..., axis=..., copy: _bool = ...) -> Self: ... def tz_convert(self, tz, axis=..., level=..., copy: _bool = ...) -> Self: ... def tz_localize( @@ -501,13 +493,7 @@ class NDFrame(indexing.IndexingMixin): nonexistent: str = ..., ) -> Self: ... def abs(self) -> Self: ... - def describe( - self, - percentiles=..., - include=..., - exclude=..., - datetime_is_numeric: _bool | None = ..., - ) -> NDFrame: ... + def describe(self, percentiles=..., include=..., exclude=...) -> NDFrame: ... def pct_change( self, periods=..., fill_method=..., limit=..., freq=..., **kwargs ) -> Self: ... diff --git a/pandas-stubs/core/series.pyi b/pandas-stubs/core/series.pyi index 8da1c6ae8..900ca9b9c 100644 --- a/pandas-stubs/core/series.pyi +++ b/pandas-stubs/core/series.pyi @@ -372,11 +372,7 @@ class Series(IndexOpsMixin[S1], NDFrame): @property def axes(self) -> list: ... def take( - self, - indices: Sequence, - axis: AxisIndex = ..., - is_copy: _bool | None = ..., - **kwargs, + self, indices: Sequence, axis: AxisIndex = ..., **kwargs ) -> Series[S1]: ... def __getattr__(self, name: _str) -> S1: ... @overload @@ -1429,7 +1425,6 @@ class Series(IndexOpsMixin[S1], NDFrame): inplace: _bool = ..., axis: AxisIndex | None = ..., level: Level | None = ..., - try_cast: _bool = ..., ) -> Series[S1]: ... def mask( self, @@ -1445,11 +1440,6 @@ class Series(IndexOpsMixin[S1], NDFrame): inplace: _bool = ..., axis: AxisIndex | None = ..., level: Level | None = ..., - try_cast: _bool = ..., - ) -> Series[S1]: ... - def slice_shift(self, periods: int = ..., axis: AxisIndex = ...) -> Series[S1]: ... - def tshift( - self, periods: int = ..., freq=..., axis: AxisIndex = ... ) -> Series[S1]: ... def truncate( self, @@ -1480,7 +1470,6 @@ class Series(IndexOpsMixin[S1], NDFrame): percentiles: list[float] | None = ..., include: Literal["all"] | list[S1] | None = ..., exclude: S1 | list[S1] | None = ..., - datetime_is_numeric: _bool | None = ..., ) -> Series[S1]: ... def pct_change( self,