Skip to content

Commit 27a2853

Browse files
author
MarcoGorelli
committed
add from_sequence
1 parent 86634ea commit 27a2853

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1+
from __future__ import annotations
2+
3+
from typing import Sequence
4+
5+
from ._types import dtype
6+
17
class Column:
2-
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.
17+
dtype : str
18+
Dtype of result. Must be specified.
19+
20+
Returns
21+
-------
22+
Column
23+
"""

0 commit comments

Comments
 (0)