Column Selector.Has Role Method
Creates a selector for columns with the specified schema role.
Definition
Namespace: Numerics.NET.DataAnalysis.Schema
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
C#
A selector that matches columns whose role is role.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
public static ColumnSelector HasRole(
ColumnRole role
)Parameters
- role ColumnRole
- The column role to match.
Return Value
ColumnSelectorA selector that matches columns whose role is role.
Remarks
The selector resolves against DataFrameSchema<R, C> and inspects schema role metadata only. It does not assign, clear, or otherwise mutate column roles. If no columns have role, it resolves to an empty selection.