dataframe

package
v0.0.0-...-da1d25d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceMissingValues

func ReplaceMissingValues(defaultValue types.TypedValue) backend.ApplyFunction

Types

type Aggregatable

type Aggregatable interface {
	Group(columns []string, aggregations map[string]aggs.Aggregation) Dataframe
	OrderBy(columns string, order backend.Ordering) Dataframe
}

type Aggs

type Aggs map[string]aggs.Aggregation

type By

type By []string

type Dataframe

type Dataframe interface {
	Filterable
	Transformable
	Aggregatable
	Joinable

	VisitRows(visitor backend.RowVisitor) Dataframe
	VisitColumn(visitor backend.ColumnVisitor)
	GetRowCount() int
	GetHeaders() backend.Headers

	Printable
	// contains filtered or unexported methods
}

func New

func New(be backend.Backend) Dataframe

type Filterable

type Filterable interface {
	Select(columns ...string) Dataframe
	Filter(cond conds.Condition) Dataframe
}

type Joinable

type Joinable interface {
	LeftJoin(with Dataframe, on conds.JoinCondition) Dataframe
	RightJoin(with Dataframe, on conds.JoinCondition) Dataframe
	InnerJoin(with Dataframe, on conds.JoinCondition) Dataframe
	OuterJoin(with Dataframe, on conds.JoinCondition) Dataframe
}

type Printable

type Printable interface {
	Print(w io.Writer) Dataframe
	Describe(w io.Writer) Dataframe
}

type Transformable

type Transformable interface {
	UpdateColumn(name string, fn backend.MutateFunction) Dataframe
	AddColumn(name string, kind types.TypeKind, fn backend.MutateFunction) Dataframe
	Concat(with Dataframe) Dataframe
	Split(cond conds.Condition) (onTrue Dataframe, onFalse Dataframe)
	CastColumn(name string, to types.TypeKind) Dataframe
	Apply(name string, fn backend.ApplyFunction) Dataframe
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL