-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle
Index
without arguments, subclassing DataFrame
and registe…
…r accessor arguments (#1091) * maybe keep these * keep PandasDelegate
- Loading branch information
Showing
6 changed files
with
189 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
from typing import Any | ||
from typing import Callable | ||
|
||
class PandasDelegate: ... | ||
|
||
def delegate_names( | ||
delegate: Any, accessors: Any, typ: str, overwrite: bool = ... | ||
) -> Any: ... | ||
from pandas._typing import TypeT | ||
|
||
class CachedAccessor: | ||
def __init__(self, name: str, accessor: Any) -> None: ... | ||
def __get__(self, obj: Any, cls: Any): ... | ||
class PandasDelegate: ... | ||
|
||
def register_dataframe_accessor(name: Any): ... | ||
def register_series_accessor(name: Any): ... | ||
def register_index_accessor(name: Any): ... | ||
def register_dataframe_accessor(name: str) -> Callable[[TypeT], TypeT]: ... | ||
def register_series_accessor(name: str) -> Callable[[TypeT], TypeT]: ... | ||
def register_index_accessor(name: str) -> Callable[[TypeT], TypeT]: ... |
Oops, something went wrong.