diff --git a/spec/API_specification/dataframe_api/column_object.py b/spec/API_specification/dataframe_api/column_object.py index 31b610b7..a08b2349 100644 --- a/spec/API_specification/dataframe_api/column_object.py +++ b/spec/API_specification/dataframe_api/column_object.py @@ -1,2 +1,25 @@ +from __future__ import annotations + +from typing import Sequence + +from ._types import dtype + class Column: - pass + @classmethod + def from_sequence(cls, sequence: Sequence[object], dtype: dtype) -> Column: + """ + Construct Column from sequence of elements. + + Parameters + ---------- + sequence : Sequence[object] + Sequence of elements. Each element must be of the specified + ``dtype``, the corresponding Python builtin scalar type, or + coercible to that Python scalar type. + dtype : str + Dtype of result. Must be specified. + + Returns + ------- + Column + """