DataFrame<R, C>.GetColumnRole 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#
public ColumnRole GetColumnRole(
	C key
)

Parameters

key  C
The typed column key.

Return Value

ColumnRole
The 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

ArgumentNullExceptionkey is null.
KeyNotFoundExceptionkey is not present in the current column index.

See Also