Skip to content

Commit e5fcd2b

Browse files
GH1063 Remove deprecated methods
1 parent b6ae6e8 commit e5fcd2b

File tree

2 files changed

+14
-33
lines changed

2 files changed

+14
-33
lines changed

pandas-stubs/core/resample.pyi

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -122,40 +122,22 @@ class Resampler(BaseGroupBy[NDFrameT]):
122122
**kwargs,
123123
) -> NDFrameT: ...
124124
def asfreq(self, fill_value: Scalar | None = ...) -> NDFrameT: ...
125-
def sum(
126-
self, numeric_only: bool = ..., min_count: int = ..., *args, **kwargs
127-
) -> NDFrameT: ...
128-
def prod(
129-
self, numeric_only: bool = ..., min_count: int = ..., *args, **kwargs
130-
) -> NDFrameT: ...
131-
def min(
132-
self, numeric_only: bool = ..., min_count: int = ..., *args, **kwargs
133-
) -> NDFrameT: ...
134-
def max(
135-
self, numeric_only: bool = ..., min_count: int = ..., *args, **kwargs
136-
) -> NDFrameT: ...
137-
def first(
138-
self, numeric_only: bool = ..., min_count: int = ..., *args, **kwargs
139-
) -> NDFrameT: ...
140-
def last(
141-
self, numeric_only: bool = ..., min_count: int = ..., *args, **kwargs
142-
) -> NDFrameT: ...
143-
def median(self, numeric_only: bool = ..., *args, **kwargs) -> NDFrameT: ...
144-
def mean(self, numeric_only: bool = ..., *args, **kwargs) -> NDFrameT: ...
145-
def std(
146-
self, ddof: int = ..., numeric_only: bool = ..., *args, **kwargs
147-
) -> NDFrameT: ...
148-
def var(
149-
self, ddof: int = ..., numeric_only: bool = ..., *args, **kwargs
150-
) -> NDFrameT: ...
151-
def sem(
152-
self, ddof: int = ..., numeric_only: bool = ..., *args, **kwargs
153-
) -> NDFrameT: ...
154-
def ohlc(self, *args, **kwargs) -> DataFrame: ...
125+
def sum(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ...
126+
def prod(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ...
127+
def min(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ...
128+
def max(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ...
129+
def first(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ...
130+
def last(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ...
131+
def median(self, numeric_only: bool = ...) -> NDFrameT: ...
132+
def mean(self, numeric_only: bool = ...) -> NDFrameT: ...
133+
def std(self, ddof: int = ..., numeric_only: bool = ...) -> NDFrameT: ...
134+
def var(self, ddof: int = ..., numeric_only: bool = ...) -> NDFrameT: ...
135+
def sem(self, ddof: int = ..., numeric_only: bool = ...) -> NDFrameT: ...
136+
def ohlc(self) -> DataFrame: ...
155137
@overload
156-
def nunique(self: Resampler[Series], *args, **kwargs) -> Series[int]: ...
138+
def nunique(self: Resampler[Series]) -> Series[int]: ...
157139
@overload
158-
def nunique(self: Resampler[DataFrame], *args, **kwargs) -> DataFrame: ...
140+
def nunique(self: Resampler[DataFrame]) -> DataFrame: ...
159141
def size(self) -> Series[int]: ...
160142
@overload
161143
def count(self: Resampler[Series]) -> Series[int]: ...

pandas-stubs/io/stata.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class StataReader(StataParser, abc.Iterator):
100100
exc_value: BaseException | None,
101101
traceback: TracebackType | None,
102102
) -> None: ...
103-
def close(self) -> None: ...
104103
def __next__(self) -> DataFrame: ...
105104
def get_chunk(self, size: int | None = ...) -> DataFrame: ...
106105
def read(

0 commit comments

Comments
 (0)