Vector<T>.ToDataFrame Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

ToDataFrame<C>(C) Returns a data frame with the current vector as its only column.
ToDataFrame<R, C>(Index<R>, C) Returns a data frame with the current vector as its only column.

Vector<T>.ToDataFrame<C>(C)

Returns a data frame with the current vector as its only column.
C#
public DataFrame<long, C> ToDataFrame<C>(
	C columnKey
)

Parameters

columnKey  C
The column key of the vector in the new data frame.

Type Parameters

C
The type of the column key.

Return Value

DataFrame<Int64, C>
A data frame with the current vector as its only column.

Vector<T>.ToDataFrame<R, C>(Index<R>, C)

Returns a data frame with the current vector as its only column.
C#
public DataFrame<R, C> ToDataFrame<R, C>(
	Index<R> rowIndex,
	C columnKey
)

Parameters

rowIndex  Index<R>
The row index of the new data frame.
columnKey  C
The column key of the vector in the new data frame.

Type Parameters

R
The element type of the row index.
C
The type of the column key.

Return Value

DataFrame<R, C>
A data frame with the current vector as its only column.

See Also