Documentation ¶
Overview ¶
Package split provides GroupBy, Agg, Permute and other functions that create and populate Splits of etable.Table data. These are powerful tools for quickly summarizing and analyzing data.
Index ¶
- func Agg(spl *etable.Splits, colNm string, aggTyp agg.Aggs) *etable.SplitAgg
- func AggIdx(spl *etable.Splits, colIdx int, aggTyp agg.Aggs) *etable.SplitAgg
- func AggTry(spl *etable.Splits, colNm string, aggTyp agg.Aggs) (*etable.SplitAgg, error)
- func All(ix *etable.IdxView) *etable.Splits
- func Desc(spl *etable.Splits, colNm string)
- func DescIdx(spl *etable.Splits, colIdx int)
- func DescTry(spl *etable.Splits, colNm string) error
- func GroupBy(ix *etable.IdxView, colNms []string) *etable.Splits
- func GroupByFunc(ix *etable.IdxView, fun func(row int) []string) *etable.Splits
- func GroupByIdx(ix *etable.IdxView, colIdxs []int) *etable.Splits
- func GroupByTry(ix *etable.IdxView, colNms []string) (*etable.Splits, error)
- func Permuted(ix *etable.IdxView, probs []float64, names []string) (*etable.Splits, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Agg ¶
Agg performs aggregation using given standard aggregation function across all splits, and returns the SplitAgg container of the results, which are also stored in the Splits. Column is specified by name -- see Try for error msg version.
func AggIdx ¶
AggIdx performs aggregation using given standard aggregation function across all splits, and returns the SplitAgg container of the results, which are also stored in the Splits. Column is specified by index.
func AggTry ¶
AggTry performs aggregation using given standard aggregation function 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 All ¶
All returns a single "split" with all of the rows in given view useful for leveraging the aggregation management functions in splits
func Desc ¶
Desc performs aggregation using standard aggregation functions across all splits, and stores results in the Splits. Column is specified by name -- see Try for error msg version.
func DescIdx ¶
DescIdx performs aggregation using standard aggregation functions across all splits, and stores results in the Splits. Column is specified by index.
func DescTry ¶
DescTry performs aggregation using standard aggregation functions across all splits, and stores results in the Splits. Column is specified by name -- returns error for bad column name.
func GroupBy ¶
GroupBy returns a new Splits set based on the groups of values across the given set of column names (see Try for version with error) 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 GroupByIdx ¶
GroupByIdx 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.
func GroupByTry ¶
GroupByTry returns a new Splits set based on the groups of values across the given set of column names. returns error for bad column names. Uses a stable sort on columns, so ordering of other dimensions is preserved.
Types ¶
This section is empty.