Click or drag to resize
F# Frame extensionsPivotTableTRowKey, TColumnKey, R, C, 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
C#
public static Frame<R, C> PivotTable<TRowKey, TColumnKey, R, C, T>(
	Frame<TRowKey, TColumnKey> frame,
	TColumnKey r,
	TColumnKey c,
	FSharpFunc<Frame<TRowKey, TColumnKey>, T> op
)

Parameters

frame
Type: DeedleFrameTRowKey, TColumnKey

[Missing <param name="frame"/> documentation for "M:Deedle.F# Frame extensions.Frame`2.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,Microsoft.FSharp.Core.FSharpFunc{Deedle.Frame{``0,``1},``4})"]

r
Type: TColumnKey

[Missing <param name="r"/> documentation for "M:Deedle.F# Frame extensions.Frame`2.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,Microsoft.FSharp.Core.FSharpFunc{Deedle.Frame{``0,``1},``4})"]

c
Type: TColumnKey

[Missing <param name="c"/> documentation for "M:Deedle.F# Frame extensions.Frame`2.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,Microsoft.FSharp.Core.FSharpFunc{Deedle.Frame{``0,``1},``4})"]

op
Type: Microsoft.FSharp.CoreFSharpFuncFrameTRowKey, TColumnKey, T

[Missing <param name="op"/> documentation for "M:Deedle.F# Frame extensions.Frame`2.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,Microsoft.FSharp.Core.FSharpFunc{Deedle.Frame{``0,``1},``4})"]

Type Parameters

TRowKey
TColumnKey
R
C
T

Return Value

Type: FrameR, C

[Missing <returns> documentation for "M:Deedle.F# Frame extensions.Frame`2.PivotTable``5(Deedle.Frame{``0,``1},``1,``1,Microsoft.FSharp.Core.FSharpFunc{Deedle.Frame{``0,``1},``4})"]

See Also