-
-
Notifications
You must be signed in to change notification settings - Fork 145
GHXXX Clean up from stubtest #1267
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -48,7 +48,6 @@ from pandas._typing import ( | |||||
DropKeep, | ||||||
DtypeArg, | ||||||
DtypeObj, | ||||||
FillnaOptions, | ||||||
HashableT, | ||||||
Label, | ||||||
Level, | ||||||
|
@@ -313,7 +312,13 @@ class Index(IndexOpsMixin[S1]): | |||||
def rename(self, name, inplace: Literal[True]) -> None: ... | ||||||
@property | ||||||
def nlevels(self) -> int: ... | ||||||
def sortlevel(self, level=..., ascending: bool = ..., sort_remaining=...): ... | ||||||
def sortlevel( | ||||||
self, | ||||||
level=..., | ||||||
ascending: bool = ..., | ||||||
sort_remaining=..., | ||||||
na_position: Literal["first", "last"] = ..., | ||||||
): ... | ||||||
def get_level_values(self, level: int | _str) -> Index: ... | ||||||
def droplevel(self, level: Level | list[Level] = ...): ... | ||||||
@property | ||||||
|
@@ -353,12 +358,7 @@ class Index(IndexOpsMixin[S1]): | |||||
def symmetric_difference( | ||||||
self, other: list[S1] | Self, result_name: Hashable = ..., sort=... | ||||||
) -> Self: ... | ||||||
def get_loc( | ||||||
self, | ||||||
key: Label, | ||||||
method: FillnaOptions | Literal["nearest"] | None = ..., | ||||||
tolerance=..., | ||||||
) -> int | slice | np_ndarray_bool: ... | ||||||
def get_loc(self, key: Label) -> int | slice | np_ndarray_bool: ... | ||||||
def get_indexer( | ||||||
self, target, method: ReindexMethod | None = ..., limit=..., tolerance=... | ||||||
): ... | ||||||
|
@@ -400,7 +400,14 @@ class Index(IndexOpsMixin[S1]): | |||||
def identical(self, other) -> bool: ... | ||||||
def asof(self, label): ... | ||||||
def asof_locs(self, where, mask): ... | ||||||
def sort_values(self, return_indexer: bool = ..., ascending: bool = ...): ... | ||||||
def sort_values( | ||||||
self, | ||||||
*, | ||||||
return_indexer: bool = ..., | ||||||
ascending: bool = ..., | ||||||
na_position: Literal["first", "last"] = ..., | ||||||
Dr-Irv marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
key: Callable | None = None, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
according to the docs, it has to take an |
||||||
): ... | ||||||
def sort(self, *args, **kwargs) -> None: ... | ||||||
def argsort(self, *args, **kwargs): ... | ||||||
def get_indexer_non_unique(self, target): ... | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ from collections.abc import ( | |
Sequence, | ||
) | ||
from typing import ( | ||
Literal, | ||
overload, | ||
) | ||
|
||
|
@@ -140,7 +141,11 @@ class MultiIndex(Index): | |
def swaplevel(self, i: int = ..., j: int = ...): ... | ||
def reorder_levels(self, order): ... | ||
def sortlevel( | ||
self, level: int = ..., ascending: bool = ..., sort_remaining: bool = ... | ||
self, | ||
level: int = ..., | ||
Dr-Irv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
ascending: bool = ..., | ||
sort_remaining: bool = ..., | ||
na_position: Literal["first", "last"] = ..., | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use |
||
): ... | ||
def get_indexer(self, target, method=..., limit=..., tolerance=...): ... | ||
def get_indexer_non_unique(self, target): ... | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
from pandas.core.interchange.dataframe_protocol import DataFrame as DataFrame | ||
from pandas.core.interchange.from_dataframe import from_dataframe as from_dataframe | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ _SeriesGroupByFuncArgs: TypeAlias = ( | |
) | ||
|
||
class Resampler(BaseGroupBy[NDFrameT]): | ||
grouper: BinGrouper # pyright: ignore[reportIncompatibleVariableOverride] # pyrefly: ignore # variance incompatibility | ||
_grouper: BinGrouper | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should delete this - not documented |
||
binner: DatetimeIndex | TimedeltaIndex | PeriodIndex | ||
exclusions: frozenset[Hashable] | ||
ax: Index | ||
Dr-Irv marked this conversation as resolved.
Show resolved
Hide resolved
Dr-Irv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
@@ -123,8 +123,12 @@ class Resampler(BaseGroupBy[NDFrameT]): | |
def prod(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ... | ||
def min(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ... | ||
def max(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ... | ||
def first(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ... | ||
def last(self, numeric_only: bool = ..., min_count: int = ...) -> NDFrameT: ... | ||
def first( | ||
self, numeric_only: bool = ..., min_count: int = ..., skipna: bool = ... | ||
) -> NDFrameT: ... | ||
def last( | ||
self, numeric_only: bool = ..., min_count: int = ..., skipna: bool = ... | ||
) -> NDFrameT: ... | ||
def median(self, numeric_only: bool = ...) -> NDFrameT: ... | ||
def mean(self, numeric_only: bool = ...) -> NDFrameT: ... | ||
def std(self, ddof: int = ..., numeric_only: bool = ...) -> NDFrameT: ... | ||
|
Uh oh!
There was an error while loading. Please reload this page.