godas

package module
v0.0.0-...-7373d6a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 21 Imported by: 0

README

godas

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataFrameCondition

func NewDataFrameCondition() *condition.Condition

func NewSeriesCondition

func NewSeriesCondition() *condition.Condition

Types

type BoolLessFunc

type BoolLessFunc func(e1, e2 bool) bool

type DataFrame

type DataFrame struct {
	Err error
	// contains filtered or unexported fields
}

func NewFromCSV

func NewFromCSV(filepathOrBufferstr interface{}) (df *DataFrame, err error)

func NewFromSeries

func NewFromSeries(ses ...*Series) (df *DataFrame, err error)

func NewFromStructs

func NewFromStructs(values interface{}) (df *DataFrame, err error)

func (*DataFrame) Append

func (df *DataFrame) Append(copy bool, records ...interface{}) (newDataFrame *DataFrame, err error)

func (*DataFrame) AssignSeries

func (df *DataFrame) AssignSeries(inplace bool, ses ...*Series) (newDataFrame *DataFrame, err error)

AssignSeries assigns new columns to a DataFrame by series.

func (*DataFrame) At

func (df *DataFrame) At(rowLabel int, columnLabel interface{}) (value elements.ElementValue, err error)

func (*DataFrame) Copy

func (df *DataFrame) Copy() (newDataFrame *DataFrame)

func (*DataFrame) Filter

func (df *DataFrame) Filter(cond *condition.Condition) (newDataFrame *DataFrame, err error)

func (*DataFrame) GetSeriesByColumn

func (df *DataFrame) GetSeriesByColumn(column string) (newSeries *Series, err error)

func (*DataFrame) IndexStruct

func (df *DataFrame) IndexStruct(rowLabel int) (rowStruct interface{}, err error)

func (*DataFrame) IsCondition

func (df *DataFrame) IsCondition(cond *condition.Condition) (ixs index.IndexBool, err error)

func (*DataFrame) NumColumn

func (df *DataFrame) NumColumn() int

func (*DataFrame) NumRow

func (df *DataFrame) NumRow() int

func (*DataFrame) Select

func (df *DataFrame) Select(columns SelectionColumns) (newDataFrame *DataFrame, err error)

func (*DataFrame) Sort

func (df *DataFrame) Sort(inplace bool, sortKeys ...SortKey) (newDataFrame *DataFrame, err error)

func (*DataFrame) Subset

func (df *DataFrame) Subset(index index.IndexInt) (newDataFrame *DataFrame, err error)

func (*DataFrame) Swap

func (df *DataFrame) Swap(i, j int)

func (*DataFrame) ToStructs

func (df *DataFrame) ToStructs() (structs []interface{})

type FloatLessFunc

type FloatLessFunc func(e1, e2 float64) bool

type IntLessFunc

type IntLessFunc func(e1, e2 int64) bool

type LessFunc

type LessFunc func(i, j int) bool

type ObjectLessFunc

type ObjectLessFunc func(e1, e2 interface{}) bool

type SelectionColumns

type SelectionColumns interface{}

SelectionColumns support indexes are:

int
[]int
string
[]string

type Series

type Series struct {
	// contains filtered or unexported fields
}

func NewSeries

func NewSeries(values interface{}, fieldName string) (se *Series, err error)

func (*Series) Append

func (se *Series) Append(copy bool, records ...interface{}) (newSe *Series, err error)

func (*Series) At

func (se *Series) At(coord int) (value elements.ElementValue, err error)

func (*Series) Copy

func (se *Series) Copy() (newSeries *Series)

func (*Series) Filter

func (se *Series) Filter(cond *condition.Condition) (newSeries *Series, err error)

func (*Series) IsCondition

func (se *Series) IsCondition(cond *condition.Condition) (ixs index.IndexBool, err error)

func (*Series) IsNaN

func (se *Series) IsNaN() []bool

func (*Series) Len

func (se *Series) Len() int

func (*Series) NewBoolLessFunc

func (se *Series) NewBoolLessFunc(f BoolLessFunc) LessFunc

func (*Series) NewFloatLessFunc

func (se *Series) NewFloatLessFunc(f FloatLessFunc) LessFunc

func (*Series) NewIntLessFunc

func (se *Series) NewIntLessFunc(f IntLessFunc) LessFunc

func (*Series) NewStringLessFunc

func (se *Series) NewStringLessFunc(f StringLessFunc) LessFunc

func (*Series) Sort

func (se *Series) Sort(inPlace bool, ascending bool, orderBy ...LessFunc) (newSe *Series, err error)

func (*Series) Subset

func (se *Series) Subset(index index.IndexInt) (newSeries *Series, err error)

func (*Series) Swap

func (se *Series) Swap(i, j int)

func (*Series) Type

func (se *Series) Type() types.Type

type SortKey

type SortKey struct {
	Column    string
	Ascending bool
	LessFunc  LessFunc
}

type StringLessFunc

type StringLessFunc func(e1, e2 string) bool

Jump to

Keyboard shortcuts

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