Column Selector.Where Method
Definition
Namespace: Numerics.NET.DataAnalysis.Schema
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Overload List
| Where( | Creates a selector from a key-independent predicate over column schemas. |
| Where<C>(Func<ColumnSchema<C>, Boolean>) | Creates a selector from a typed predicate over column schemas. |
Where(Func<IColumnSchema, Boolean>)
Creates a selector from a key-independent predicate over column schemas.
public static ColumnSelector Where(
Func<IColumnSchema, bool> predicate
)Parameters
- predicate Func<IColumnSchema, Boolean>
- The predicate used to select columns.
Return Value
ColumnSelectorA selector that selects columns matching predicate.
Remarks
The predicate receives non-generic schema metadata and can resolve against schemas with any column-key type. It should not depend on vector values. A predicate that matches no columns resolves to an empty selection.
Exceptions
| Argument | predicate is null. |
Where<C>(Func<ColumnSchema<C>, Boolean>)
Creates a selector from a typed predicate over column schemas.
public static ColumnSelector Where<C>(
Func<ColumnSchema<C>, bool> predicate
)
Parameters
- predicate Func<ColumnSchema<C>, Boolean>
- The predicate used to select columns.
Type Parameters
- C
- The element type of the data frame column index.
Return Value
ColumnSelectorA selector that selects columns matching predicate.
Remarks
The predicate receives typed column schemas, including typed column keys. Resolving this selector against a schema with a different column-key type throws InvalidCastException.
Exceptions
| Argument | predicate is null. |