package
0.0.0-20170323211221-abd1f791f5ee
Repository: https://github.com/aclements/go-gg.git
Documentation: pkg.go.dev

# Functions

ColType returns the type of column col in g.
Concat returns the concatenation of the rows in each matching group across gs.
Filter filters g to only rows where pred returns true.
FilterEq filters g to only rows where the value in col equals val.
Flatten concatenates all of the groups in g into a single Table.
Fprint prints Grouping g to w.
GroupBy sub-divides all groups such that all of the rows in each group have equal values for all of the named columns.
Head returns the first n rows in each Table of g.
HeadTables returns the first n tables in g.
Join joins g1 and g2 on tables with identical group IDs where col1 in g1 equals col2 in g2.
MapCols applies f to a set of input columns to construct a set of new output columns.
MapTables applies f to each Table in g and returns a new Grouping with the same group structure as g, but with the Tables returned by f.
NewBuilder returns a new Builder.
NewGroupingBuilder returns a new GroupingBuilder.
Pivot converts rows of g into columns.
Print(...) is shorthand for Fprint(os.Stderr, ...).
Remove returns g with column 'col' removed.
Rename returns g with column 'from' renamed to 'to'.
SortBy sorts each group of g by the named columns.
TableFromStrings converts a [][]string to a Table.
TableFromStructs converts a []T where T is a struct to a Table where the columns of the table correspond to T's exported fields.
Tail returns the last n rows in each Table of g.
TailTables returns the first n tables in g.
Ungroup concatenates adjacent Tables in g that share a group parent into a Table identified by the parent, undoing the effects of the most recent GroupBy operation.
Unpivot converts columns of g into rows.

# Variables

RootGroupID is the root of the GroupID tree.

# Structs

A Builder constructs a Table one column at a time.
GroupID identifies a group.
A GroupingBuilder constructs a Grouping one table a time.
A Table is an immutable, ordered two dimensional relation.

# Interfaces

A Grouping is an immutable set of tables with identical sets of columns, each identified by a distinct GroupID.
A Slice is a Go slice value.