Documentation
¶
Overview ¶
Package dt provides a simple data processing toolkit.
Index ¶
- Variables
- type Frame
- func (a *Frame) Append(record map[string]*Value) *Frame
- func (a *Frame) Clone(alloc bool, data bool) *Frame
- func (a *Frame) Concat(b *Frame) *Frame
- func (a *Frame) Copy() *Frame
- func (a *Frame) Delete(key string) *Frame
- func (a *Frame) Describe() *Frame
- func (a *Frame) DropNA(keys ...string) *Frame
- func (a *Frame) Each(f func([]*Value) error, keys ...string) error
- func (a *Frame) FillNA(v *Value, keys ...string) *Frame
- func (a *Frame) Filter(f func([]*Value) bool, keys ...string) *Frame
- func (a *Frame) Get(key string) List
- func (a *Frame) GroupBy(keys ...string) *Group
- func (a *Frame) Has(keys ...string) bool
- func (a *Frame) Head(k int) *Frame
- func (a *Frame) IGet(i, j int) *Value
- func (a *Frame) ISet(i, j int, value *Value)
- func (a *Frame) Join(b *Frame, keys ...string) *Join
- func (a *Frame) Keys() []string
- func (a *Frame) Len() int
- func (a *Frame) Lists() []List
- func (a *Frame) Map(f func([]*Value) *Value, keys ...string) List
- func (a *Frame) MapTo(key string, f func([]*Value) *Value, keys ...string) *Frame
- func (a *Frame) Pick(keys ...string) *Frame
- func (a *Frame) Rename(old, new string) *Frame
- func (a *Frame) Set(key string, list List) *Frame
- func (a *Frame) Slice(i, j int) *Frame
- func (a *Frame) Sort(less func([]*Value, []*Value) bool, keys ...string) *Frame
- func (a *Frame) SortBy(options ...SortOption) *Frame
- func (a *Frame) Stack(name string, value string, keys ...string) *Frame
- func (a *Frame) String() string
- func (a *Frame) Swap(i, j int)
- func (a *Frame) Tail(k int) *Frame
- func (a *Frame) Unstack(name string, value string, prefix string) *Frame
- type Group
- type Join
- type List
- type SortOption
- type Value
- func AVG(l List) *Value
- func COUNT(l List) *Value
- func FIRST(l List) *Value
- func Float(v float64) *Value
- func LAST(l List) *Value
- func MAX(l List) *Value
- func MEDIAN(l List) *Value
- func MIN(l List) *Value
- func STD(l List) *Value
- func SUM(l List) *Value
- func String(v string) *Value
- func VAR(l List) *Value
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingData = errors.New("dt: missing data")
)
Errors.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
Frame represents a data frame.
func (*Frame) SortBy ¶
func (a *Frame) SortBy(options ...SortOption) *Frame
SortBy sorts the frame by sort options.
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group represents a group operation.
type Join ¶
type Join struct {
// contains filtered or unexported fields
}
Join represents a join operation.
type List ¶
type List []*Value
List represents a list.
type SortOption ¶
type SortOption struct {
// contains filtered or unexported fields
}
SortOption represents a sort option.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.