Filters the rows of a data frame based on a predicate.
Each row's index is used in the logic of the predicate function.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DataFrame<R, C> Where<R, C>(
this DataFrame<R, C> frame,
Func<DataFrameRow<R, C>, int, bool> predicate
)
<ExtensionAttribute>
Public Shared Function Where(Of R, C) (
frame As DataFrame(Of R, C),
predicate As Func(Of DataFrameRow(Of R, C), Integer, Boolean)
) As DataFrame(Of R, C)
public:
[ExtensionAttribute]
generic<typename R, typename C>
static DataFrame<R, C>^ Where(
DataFrame<R, C>^ frame,
Func<DataFrameRow<R, C>^, int, bool>^ predicate
)
[<ExtensionAttribute>]
static member Where :
frame : DataFrame<'R, 'C> *
predicate : Func<DataFrameRow<'R, 'C>, int, bool> -> DataFrame<'R, 'C>
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameR, C
A data frame to filter. - predicate
- Type: SystemFuncDataFrameRowR, C, Int32, Boolean
A function to test each row for a condition.
Type Parameters
- R
- The element type of the row index of the data frame.
- C
- The element type of the column index of the data frame.
Return Value
Type:
DataFrameR,
CA data frame that contains the rows from
frame that satisfy the condition.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataFrameR,
C. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference