Skip to content

Commit fa4fb66

Browse files
committed
add Column.len
1 parent 61adbc3 commit fa4fb66

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/API_specification/dataframe_api/column_object.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ def name(self) -> str:
9090
"""Return name of column."""
9191
...
9292

93-
def __len__(self) -> int:
94-
"""Return the number of rows."""
95-
...
96-
9793
def __iter__(self) -> NoReturn:
9894
"""Iterate over elements.
9995
@@ -750,6 +746,10 @@ def var(
750746
"""
751747
...
752748

749+
def len(self) -> Scalar:
750+
"""Return the number of rows."""
751+
...
752+
753753
def cumulative_max(self) -> Self:
754754
"""Reduction returns a Column.
755755

spec/API_specification/dataframe_api/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class NullType:
6969
null: NullType
7070

7171
class Datetime:
72-
time_unit: Literal['ms', 'us']
72+
time_unit: Literal["ms", "us"]
7373
time_zone: str | None
7474

7575
def __init__( # noqa: ANN204
@@ -80,7 +80,7 @@ def __init__( # noqa: ANN204
8080
...
8181

8282
class Duration:
83-
time_unit: Literal['ms', 'us']
83+
time_unit: Literal["ms", "us"]
8484

8585
def __init__( # noqa: ANN204
8686
self,

0 commit comments

Comments
 (0)