Data Frame<R, C>.Get Column Role Method
Gets the role assigned to the specified column.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
C#
The assigned role, or None when the column exists and no explicit role has been assigned.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
public ColumnRole GetColumnRole(
C key
)Parameters
- key C
- The typed column key.
Return Value
ColumnRoleThe assigned role, or None when the column exists and no explicit role has been assigned.
Remarks
Column role metadata is owned by the data frame and lives in the Numerics.NET.DataAnalysis namespace. It is projected into schema snapshots returned by GetSchema(), but previously returned schema objects are not updated by later role changes.
Exceptions
| Argument | key is null. |
| Key | key is not present in the current column index. |