From eb1daa6319211cfe348a35d365c239b35b8dfe0b Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:24:50 +0000 Subject: [PATCH] add Column.len --- spec/API_specification/dataframe_api/column_object.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/API_specification/dataframe_api/column_object.py b/spec/API_specification/dataframe_api/column_object.py index 9ae7de4a..c6c7b4fd 100644 --- a/spec/API_specification/dataframe_api/column_object.py +++ b/spec/API_specification/dataframe_api/column_object.py @@ -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. @@ -750,6 +746,10 @@ def var( """ ... + def len(self) -> Scalar: + """Return the number of rows.""" + ... + def cumulative_max(self) -> Self: """Reduction returns a Column.