Skip to content

Commit

Permalink
add Column.len (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Dec 7, 2023
1 parent 8ecbea3 commit f57f47a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/API_specification/dataframe_api/column_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ def name(self) -> str:
"""Return name of column."""
...

def __len__(self) -> int:
"""Return the number of rows."""
...

def __iter__(self) -> NoReturn:
"""Iterate over elements.
Expand Down Expand Up @@ -750,6 +746,10 @@ def var(
"""
...

def len(self) -> Scalar:
"""Return the number of rows."""
...

def n_unique(self, *, skip_nulls: bool = True) -> Scalar:
"""Return number of unique values.
Expand Down

0 comments on commit f57f47a

Please sign in to comment.