Column Selector.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#
A selector that selects key.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
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
ColumnSelectorA 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
| Argument | key is null. |