Skip to main content

array

Function array 

Source
pub fn array(
    data: &[Scalar],
    dtype: Option<DType>,
) -> Result<Series, FrameError>
Expand description

Construct a 1D array / Series, matching pd.array(data, dtype=None).

Creates a 1D Series from scalar data, optionally casting to the specified DType.