-
-
Notifications
You must be signed in to change notification settings - Fork 150
type dataframe.transpose #1136
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
type dataframe.transpose #1136
Changes from 1 commit
6189b5c
7572894
7ab7570
d7f5c46
1b8f4d9
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
from typing import Any | ||
|
||
import numpy as np | ||
from pandas.core.arrays import ( | ||
ExtensionArray, | ||
ExtensionOpsMixin, | ||
) | ||
from typing_extensions import Self | ||
|
||
class SparseArray(ExtensionArray, ExtensionOpsMixin): | ||
def __init__( | ||
|
@@ -53,7 +56,7 @@ class SparseArray(ExtensionArray, ExtensionOpsMixin): | |
def sum(self, axis: int = ..., *args, **kwargs): ... | ||
def cumsum(self, axis: int = ..., *args, **kwargs): ... | ||
def mean(self, axis: int = ..., *args, **kwargs): ... | ||
def transpose(self, *axes): ... | ||
def transpose(self, *axes: Any) -> Self: ... | ||
|
||
@property | ||
def T(self): ... | ||
def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): ... | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1539,7 +1539,7 @@ class Series(IndexOpsMixin[S1], NDFrame): | |
bins: int | None = ..., | ||
dropna: _bool = ..., | ||
) -> Series[float]: ... | ||
def transpose(self, *args, **kwargs) -> Series[S1]: ... | ||
def transpose(self, axes: None = ...) -> Series[S1]: ... | ||
|
||
@property | ||
def T(self) -> Self: ... | ||
# The rest of these were left over from the old | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
axes
is totally ignored inSparseArray.transpose