We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Column.from_sequence
1 parent e0d387f commit b2d977cCopy full SHA for b2d977c
spec/API_specification/dataframe_api/column_object.py
@@ -1,2 +1,25 @@
1
+from __future__ import annotations
2
+
3
+from typing import Sequence
4
5
+from ._types import dtype
6
7
class Column:
- pass
8
+ @classmethod
9
+ def from_sequence(cls, sequence: Sequence[object], dtype: dtype) -> Column:
10
+ """
11
+ Construct Column from sequence of elements.
12
13
+ Parameters
14
+ ----------
15
+ sequence : Sequence[object]
16
+ Sequence of elements. Each element must be of the specified
17
+ ``dtype``, the corresponding Python builtin scalar type, or
18
+ coercible to that Python scalar type.
19
+ dtype : str
20
+ Dtype of result. Must be specified.
21
22
+ Returns
23
+ -------
24
+ Column
25
0 commit comments