ColumnSelector.HasRole 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#
public static ColumnSelector HasRole(
	ColumnRole role
)

Parameters

role  ColumnRole
The column role to match.

Return Value

ColumnSelector
A 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.

See Also