diff --git a/spec/API_specification/dataframe_api/column_object.py b/spec/API_specification/dataframe_api/column_object.py index 1a965437..8667e6e0 100644 --- a/spec/API_specification/dataframe_api/column_object.py +++ b/spec/API_specification/dataframe_api/column_object.py @@ -695,8 +695,21 @@ def to_array_object(self, dtype: Any) -> Any: Parameters ---------- - dtype : Any + dtype : DType The dtype of the array-API-compliant object to return. + Must be one of: + + - Bool() + - Int8() + - Int16() + - Int32() + - Int64() + - UInt8() + - UInt16() + - UInt32() + - UInt64() + - Float32() + - Float64() Returns ------- diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index e2a161d7..8a25a8c1 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -823,8 +823,21 @@ def to_array_object(self, dtype: Any) -> Any: Parameters ---------- - dtype : Any + dtype : DType The dtype of the array-API-compliant object to return. + Must be one of: + + - Bool() + - Int8() + - Int16() + - Int32() + - Int64() + - UInt8() + - UInt16() + - UInt32() + - UInt64() + - Float32() + - Float64() Returns -------