Skip to content

BUG: Fix more interchange Column.size method #50565

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

Merged
merged 5 commits into from
Jan 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typing
  • Loading branch information
mroeschke committed Jan 5, 2023
commit efcedf1f02df41d72d62cf6e3fbdac5a19d4cb95
3 changes: 1 addition & 2 deletions pandas/core/interchange/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ def __init__(self, column: pd.Series, allow_copy: bool = True) -> None:
self._col = column
self._allow_copy = allow_copy

def size(self) -> int: # type: ignore[override]
def size(self) -> int:
"""
Size of the column, in elements.
"""
# error: Signature of "size" incompatible with supertype "Column" [override]
return self._col.size

@property
Expand Down