bach.Series.from_value
classmethod from_value
(base, value, name='new_series', dtype=None)Create an instance of this class, that represents a column with the given value. The given base Series/DataFrame will be used to set the engine, base_node, and index.
Parameters
base
(Union[bach.dataframe.DataFrame, bach.series.series.Series]) – The DataFrame or Series that the internal parameters are taken fromvalue
(Any) – The value that this constant Series will havename
(str) – The name that it will be known by (only for representation)dtype
(Optional[Union[List[Any], Mapping[str, Any], str]]) – Optional dtype for structural types. Will default to cls.dtype