Skip to content

Commit

Permalink
add Column.len
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Nov 21, 2023
1 parent 61adbc3 commit fa4fb66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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 cumulative_max(self) -> Self:
"""Reduction returns a Column.
Expand Down
4 changes: 2 additions & 2 deletions spec/API_specification/dataframe_api/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class NullType:
null: NullType

class Datetime:
time_unit: Literal['ms', 'us']
time_unit: Literal["ms", "us"]
time_zone: str | None

def __init__( # noqa: ANN204
Expand All @@ -80,7 +80,7 @@ def __init__( # noqa: ANN204
...

class Duration:
time_unit: Literal['ms', 'us']
time_unit: Literal["ms", "us"]

def __init__( # noqa: ANN204
self,
Expand Down

0 comments on commit fa4fb66

Please sign in to comment.