Data Frame.Get Rows Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Get | Returns a data frame containing the rows where the first level of the index has the specified value. |
Get | Returns a data frame containing the rows where the first level of the index has the specified value. |
Get | Returns a data frame containing the rows where the first two levels of the index have the specified values. |
GetRows<R1, R2, C>(DataFrame<ValueTuple<R1, R2>, C>, R1)
Returns a data frame containing the rows where the first
level of the index has the specified value.
public static DataFrame<R2, C> GetRows<R1, R2, C>(
this DataFrame<(R1 , R2 ), C> frame,
R1 key
)
Parameters
- frame DataFrame<ValueTuple<R1, R2>, C>
- A data frame.
- key R1
- A key in the first level of the index.
Type Parameters
- R1
- The type of the first level of the index.
- R2
- The type of the second level of the index.
- C
- The element type of the column index.
Return Value
DataFrame<R2, C>A data frame with row indexes of type R2 that contains the rows of frame whose key has the value key at the first level.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type DataFrame<ValueTuple<R1, R2>, 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).GetRows<R1, R2, R3, C>(DataFrame<ValueTuple<R1, R2, R3>, C>, R1)
Returns a data frame containing the rows where the first
level of the index has the specified value.
public static DataFrame<(R2 , R3 ), C> GetRows<R1, R2, R3, C>(
this DataFrame<(R1 , R2 , R3 ), C> frame,
R1 key
)
Parameters
- frame DataFrame<ValueTuple<R1, R2, R3>, C>
- A data frame.
- key R1
- A key in the first level of the index.
Type Parameters
- R1
- The type of the first level of the index.
- R2
- The type of the second level of the index.
- R3
- The type of the third level of the index.
- C
- The element type of the column index.
Return Value
DataFrame<ValueTuple<R2, R3>, C>A data frame with a two-level hierarchical row indexes with levels of type R2 and R3 that contains the rows of frame whose key has the value key at the first level.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type DataFrame<ValueTuple<R1, R2, R3>, 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).GetRows<R1, R2, R3, C>(DataFrame<ValueTuple<R1, R2, R3>, C>, R1, R2)
Returns a data frame containing the rows where
the first two levels of the index have the specified values.
public static DataFrame<R3, C> GetRows<R1, R2, R3, C>(
this DataFrame<(R1 , R2 , R3 ), C> frame,
R1 key1,
R2 key2
)
Parameters
- frame DataFrame<ValueTuple<R1, R2, R3>, C>
- A data frame.
- key1 R1
- A key in the first level of the index.
- key2 R2
- A key in the second level of the index.
Type Parameters
- R1
- The type of the first level of the index.
- R2
- The type of the second level of the index.
- R3
- The type of the third level of the index.
- C
- The element type of the column index.
Return Value
DataFrame<R3, C>A data frame containing the rows whose key has the value key1 in the first level and key2 in the second level.