| FrameExtensionsPivotTableR, C, RNew, CNew, T Method |
Creates a new data frame resulting from a 'pivot' operation. Consider a denormalized data
frame representing a table: column labels are field names & table values are observations
of those fields. pivotTable buckets the rows along two axes, according to the values of
the columns `r` and `c`; and then computes a value for the frame of rows that land in each
bucket.
## Parameters
- `r` - A column key to group on for the resulting row index
- `c` - A column key to group on for the resulting col index
- `op` - A function computing a value from the corresponding bucket frame
[category:Frame operations]
Namespace:
Deedle
Assembly:
Deedle (in Deedle.dll) Version: 1.2
Syntax public static Frame<RNew, CNew> PivotTable<R, C, RNew, CNew, T>(
this Frame<R, C> frame,
C r,
C c,
Func<Frame<R, C>, T> op
)
Parameters
- frame
- Type: DeedleFrameR, C
[Missing <param name="frame"/> documentation for "M:Deedle.FrameExtensions.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,System.Func{Deedle.Frame{``0,``1},``4})"]
- r
- Type: C
[Missing <param name="r"/> documentation for "M:Deedle.FrameExtensions.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,System.Func{Deedle.Frame{``0,``1},``4})"]
- c
- Type: C
[Missing <param name="c"/> documentation for "M:Deedle.FrameExtensions.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,System.Func{Deedle.Frame{``0,``1},``4})"]
- op
- Type: SystemFuncFrameR, C, T
[Missing <param name="op"/> documentation for "M:Deedle.FrameExtensions.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,System.Func{Deedle.Frame{``0,``1},``4})"]
Type Parameters
- R
- C
- RNew
- CNew
- T
Return Value
Type:
FrameRNew,
CNew[Missing <returns> documentation for "M:Deedle.FrameExtensions.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,System.Func{Deedle.Frame{``0,``1},``4})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FrameR,
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).
See Also