ColumnSelector.Key<C> Method

Creates a selector for one explicit column key.

Definition

Namespace: Numerics.NET.DataAnalysis.Schema
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
C#
public static ColumnSelector Key<C>(
	C key
)

Parameters

key  C
The typed column key.

Type Parameters

C
The element type of the data frame column index.

Return Value

ColumnSelector
A selector that selects key.

Remarks

The key is validated when the selector is resolved against a schema. A missing explicit key throws KeyNotFoundException during resolution. Resolving this selector against a schema with a different column-key type throws InvalidCastException.

Exceptions

See Also