- vectorFromArray(values: readonly (undefined | null)[], type?: Null): Vector<dtypes.Null>
-
Parameters
-
values: readonly (undefined | null)[]
-
Optional
type: Null
Returns Vector<dtypes.Null>
- vectorFromArray(values: readonly (undefined | null | boolean)[], type?: Bool): Vector<dtypes.Bool>
-
Parameters
-
values: readonly (undefined | null | boolean)[]
-
Optional
type: Bool
Returns Vector<dtypes.Bool>
- vectorFromArray<T>(values: readonly (undefined | null | string)[], type?: T): Vector<T>
-
Type Parameters
-
T extends Utf8 | Dictionary<Utf8, TKeys> = Dictionary<Utf8, Int32>
Parameters
-
values: readonly (undefined | null | string)[]
-
Optional
type: T
- vectorFromArray<T>(values: readonly (undefined | null | Date)[], type?: T): Vector<T>
-
Type Parameters
-
T extends Date_<Dates, T>
Parameters
-
values: readonly (undefined | null | Date)[]
-
Optional
type: T
- vectorFromArray<T>(values: readonly (undefined | null | number)[], type: T): Vector<T>
-
Parameters
-
values: readonly (undefined | null | number)[]
-
type: T
- vectorFromArray<T>(values: readonly (undefined | null | bigint)[], type?: T): Vector<T>
-
Type Parameters
-
T extends Int64 | Uint64 = Int64
Parameters
-
values: readonly (undefined | null | bigint)[]
-
Optional
type: T
- vectorFromArray<T>(values: readonly (undefined | null | number)[], type?: T): Vector<T>
-
Type Parameters
-
T extends Float<Floats, T> = Float64
Parameters
-
values: readonly (undefined | null | number)[]
-
Optional
type: T
- vectorFromArray<T>(values: readonly unknown[], type: T): Vector<T>
-
Parameters
-
values: readonly unknown[]
-
type: T
- vectorFromArray<T>(values: T): Vector<JavaScriptArrayDataType<T>>
-
Type Parameters
-
T extends readonly unknown[]
Returns Vector<JavaScriptArrayDataType<T>>
- vectorFromArray<T>(data: T): Vector<TypedArrayDataType<T>>
-
Type Parameters
-
T extends TypedArray | BigIntArray
Returns Vector<TypedArrayDataType<T>>
- vectorFromArray<T>(data: Data<T>): Vector<T>
-
- vectorFromArray<T>(data: Vector<T>): Vector<T>
-
- vectorFromArray<T>(data: DataProps<T>): Vector<T>
-
- vectorFromArray<T>(data: T): Vector<ArrayDataType<T>>
-
Type Parameters
-
T extends readonly unknown[] | TypedArray | BigIntArray
Returns Vector<ArrayDataType<T>>
Creates a Vector from a JavaScript array via a Builder. Use makeVector if you only want to create a vector from a typed array.
Example