Skip to content

Commit f57f47a

Browse files
authored
add Column.len (#331)
1 parent 8ecbea3 commit f57f47a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
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 n_unique(self, *, skip_nulls: bool = True) -> Scalar:
754754
"""Return number of unique values.
755755

0 commit comments

Comments
 (0)