Documentation ¶
Overview ¶
Package split provides GroupBy, Agg, Permute and other functions that create and populate Splits of table.Table data. These are powerful tools for quickly summarizing and analyzing data.
Index ¶
- func AggAllNumericColumns(spl *table.Splits, stat stats.Stats)
- func AggColumn(spl *table.Splits, column string, stat stats.Stats) (*table.SplitAgg, error)
- func AggIndex(spl *table.Splits, colIndex int, stat stats.Stats) *table.SplitAgg
- func All(ix *table.IndexView) *table.Splits
- func DescColumn(spl *table.Splits, column string) error
- func DescIndex(spl *table.Splits, colIndex int)
- func GroupBy(ix *table.IndexView, columns ...string) *table.Splits
- func GroupByFunc(ix *table.IndexView, fun func(row int) []string) *table.Splits
- func GroupByIndex(ix *table.IndexView, colIndexes []int) *table.Splits
- func Permuted(ix *table.IndexView, probs []float64, names []string) (*table.Splits, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggAllNumericColumns ¶ added in v0.3.3
AggAllNumericColumns performs aggregation using given standard aggregation function across all splits, for all number-valued columns in the table.
func AggColumn ¶
AggColumn performs aggregation using given standard statistic (e.g., Mean) across all splits, and returns the SplitAgg container of the results, which are also stored in the Splits. Column is specified by name; returns error for bad column name.
func AggIndex ¶
AggIndex performs aggregation using given standard statistic (e.g., Mean) across all splits, and returns the SplitAgg container of the results, which are also stored in the Splits. Column is specified by index.
func All ¶
All returns a single "split" with all of the rows in given view useful for leveraging the aggregation management functions in splits
func DescColumn ¶
DescColumn performs aggregation using standard statistics across all splits, and stores results in the Splits. Column is specified by name; returns error for bad column name.
func DescIndex ¶
DescIndex performs aggregation using standard statistics across all splits, and stores results in the Splits. Column is specified by index.
func GroupBy ¶
GroupBy returns a new Splits set based on the groups of values across the given set of column names. Uses a stable sort on columns, so ordering of other dimensions is preserved.
func GroupByFunc ¶
GroupByFunc returns a new Splits set based on the given function which returns value(s) to group on for each row of the table. The function should always return the same number of values -- if it doesn't behavior is undefined. Uses a stable sort on columns, so ordering of other dimensions is preserved.
func GroupByIndex ¶
GroupByIndex returns a new Splits set based on the groups of values across the given set of column indexes. Uses a stable sort on columns, so ordering of other dimensions is preserved.
Types ¶
This section is empty.