-
Notifications
You must be signed in to change notification settings - Fork 21
add Column.from_sequence #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
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. | ||
dtype : str | ||
Dtype of result. Must be specified. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we start listing the possible values for the strings to specify dtypes? (for example, we don't necessarily want to support all variations of the same dtype that numpy supports?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohhhh that is a good catch - this is the very first There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done in gh-155 |
||
|
||
Returns | ||
------- | ||
Column | ||
""" |
Uh oh!
There was an error while loading. Please reload this page.