DataFrame<R, C>.Item Property

Definition

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

Overload List

Item[C] Gets, sets or adds a column with the specified key.
Item[Int32] Gets the column at the specified index.

Item(C)

Gets, sets or adds a column with the specified key.
C#
public IVector this[
	C key
] { get; set; }

Parameters

key  C
The key of the column.

Return Value

IVector
The column with the specified key.

Remarks

When setting a value, if a column with the specified key already exists, this column is replaced with the new value. Otherwise, a new column is added.

Exceptions

KeyNotFoundException

The column could not be retrieved because no column with the specified key could be found.

DimensionMismatchException

The new value for the column does not have an index, and the length of the new column does not equal the number of rows in the data frame.

InvalidOperationException

The value is the first column added to the data frame and it does not have a valid index.

Item(Int32)

Gets the column at the specified index.
C#
public IVector this[
	int index
] { get; set; }

Parameters

index  Int32
The zero-based index of the column.

Return Value

IVector
A IVector object.

Implements

IDataFrame.Item[Int32]

Remarks

Use the IVector object's As<U>() method to get the column as a typed vector.

See Also