Documentation ¶
Index ¶
- Constants
- func MatrixPairWiseOperation(m0 []interface{}, m1 []interface{}, option int) ([]interface{}, error)
- func ProcessDataFrame(dataFrame *DataFrame, callback Callback) error
- func SortableTupleAppendToDataframe(tuple SortableTuple, dataFrame *DataFrame) error
- func ToInterfaceArray(val interface{}) ([]interface{}, error)
- func TupleAppendToDataframe(tuple map[string]interface{}, dataFrame *DataFrame) error
- func TupleArrayToDataframe(tuples []map[string]interface{}, dataFrame *DataFrame) error
- func TupleAssignToDataframe(index int, tuple map[string]interface{}, dataFrame *DataFrame) error
- type Callback
- type Count
- type Data
- type DataFrame
- func (dataFrame *DataFrame) AddColumn(colName string, colValues []interface{})
- func (dataFrame *DataFrame) AsIs() interface{}
- func (dataFrame *DataFrame) AsMatrix() [][]interface{}
- func (dataFrame *DataFrame) AsTable() map[string]interface{}
- func (dataFrame *DataFrame) GetColumn(label string) []interface{}
- func (dataFrame *DataFrame) GetData() map[string][]interface{}
- func (dataFrame *DataFrame) GetFromTable() bool
- func (dataFrame *DataFrame) GetLabels() []string
- func (dataFrame *DataFrame) SetFromTable(fromTable bool)
- func (dataFrame *DataFrame) SetLabels(order []string)
- type DataFrameSorter
- type DataState
- type First
- type Index
- type Max
- type Mean
- type Min
- type SortableTuple
- type Sum
Constants ¶
View Source
const ( MatirxPairWiseAdd = iota MatirxPairWiseDivide MatirxPairWiseMulti )
View Source
const (
DataFrameOrderLabel = "order"
)
Variables ¶
This section is empty.
Functions ¶
func MatrixPairWiseOperation ¶
func ProcessDataFrame ¶
func SortableTupleAppendToDataframe ¶
func SortableTupleAppendToDataframe( tuple SortableTuple, dataFrame *DataFrame) error
slow but flexible dataframe size
func ToInterfaceArray ¶
func ToInterfaceArray(val interface{}) ([]interface{}, error)
func TupleAppendToDataframe ¶
slow but flexible dataframe size
func TupleArrayToDataframe ¶
Types ¶
type Callback ¶
type Callback func(tuple *SortableTuple, lastTuple bool) error
type DataFrame ¶
type DataFrame struct {
// contains filtered or unexported fields
}
func NewDataFrame ¶
func NewDataFrame() *DataFrame
func ToDataFrame ¶
func (*DataFrame) GetFromTable ¶
func (*DataFrame) SetFromTable ¶
type DataFrameSorter ¶
type DataFrameSorter struct { Axis int Ascending bool NilLast bool ByKey bool SortBy []interface{} Tuples []SortableTuple ColumnLabels []string RowLabels []string OriginalFromTable bool }
func NewDataFrameSorter ¶
func (DataFrameSorter) GetDataFrame ¶
func (s DataFrameSorter) GetDataFrame() *DataFrame
func (DataFrameSorter) Len ¶
func (s DataFrameSorter) Len() int
func (DataFrameSorter) Less ¶
func (s DataFrameSorter) Less(i, j int) bool
func (DataFrameSorter) Swap ¶
func (s DataFrameSorter) Swap(i, j int)
type DataState ¶
type DataState interface { Update(newData interface{}) error Value() interface{} }
func GetFunction ¶
type SortableTuple ¶
type SortableTuple struct { Data map[string]interface{} // contains filtered or unexported fields }
func NewSortableTuple ¶
func NewSortableTuple(data map[string]interface{}, fieldOrder []string) *SortableTuple
func (SortableTuple) GetByIndex ¶
func (t SortableTuple) GetByIndex(index int) interface{}
func (SortableTuple) GetByKey ¶
func (t SortableTuple) GetByKey(key string) interface{}
func (SortableTuple) GetData ¶
func (t SortableTuple) GetData() map[string]interface{}
func (SortableTuple) GetDataArray ¶
func (t SortableTuple) GetDataArray() []interface{}
Click to show internal directories.
Click to hide internal directories.