Vector<T>.ToDataFrame Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

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.

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.

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