Documentation
¶
Index ¶
- type Condition
- type Series
- func FromArrow(pool memory.Allocator, field arrow.Field, column array.Interface) Series
- func FromFloat32(pool memory.Allocator, field arrow.Field, vals []float32, valid []bool) Series
- func FromFloat64(pool memory.Allocator, field arrow.Field, vals []float64, valid []bool) Series
- func FromInt32(pool memory.Allocator, field arrow.Field, vals []int32, valid []bool) Series
- func FromInt64(pool memory.Allocator, field arrow.Field, vals []int64, valid []bool) Series
- func FromInterface(pool memory.Allocator, field arrow.Field, vals interface{}, valid []bool) Series
- func FromString(pool memory.Allocator, field arrow.Field, vals []string, valid []bool) Series
- func (s Series) Abs() Series
- func (s Series) Add(ss Series) Series
- func (s Series) Append(ss Series) Series
- func (s Series) At(i, _ int) float64
- func (s Series) AtVec(i int) float64
- func (s Series) Cast(t arrow.DataType) Series
- func (s Series) Column() *array.Column
- func (s Series) Dims() (r, c int)
- func (s Series) Dot(ss Series) float64
- func (s Series) DropIndices(indices []int) Series
- func (s Series) DropNA() Series
- func (s Series) Empty(n int) Series
- func (s Series) Field() arrow.Field
- func (s Series) FindIndices(val interface{}) []int
- func (s Series) Float32(i int) float32
- func (s Series) Float64(i int) float64
- func (s Series) Head(n int) Series
- func (s Series) Int32(i int) int32
- func (s Series) Int64(i int) int64
- func (s Series) IsNA() []bool
- func (s Series) Magnitude() float64
- func (s Series) Map(fn func(interface{}) interface{}) Series
- func (s Series) Max() float64
- func (s Series) Mean() float64
- func (s Series) Median() float64
- func (s Series) Min() float64
- func (s Series) NAIndices() []int
- func (s Series) Name() string
- func (s Series) Rename(name string) Series
- func (s Series) STD() float64
- func (s Series) SelectIndices(indices []int) Series
- func (s Series) SortValues() Series
- func (s Series) Sqrt() Series
- func (s Series) Square() Series
- func (s Series) String() string
- func (s Series) StringValues() []string
- func (s Series) Subtract(ss Series) Series
- func (s Series) Sum() float64
- func (s Series) T() mat.Matrix
- func (s Series) Truncate(i, j int64) Series
- func (s Series) Unique() Series
- func (s Series) Value(i int) interface{}
- func (s Series) Values() interface{}
- func (s Series) Where(cs ...Condition) Series
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition func(interface{}) bool
Condition represents a function which can be applied to any value and return a boolean.
type Series ¶
Series ... TODO: TRY A CHUNKED / COLUMN VERSION OF SERIES TODO: ADD PRECISION
func FromFloat32 ¶
FromFloat32 creates a Series from a slice of float32 values.
func FromFloat64 ¶
FromFloat64 creates a Series from a slice of float64 values.
func FromInt32 ¶
FromInt32 creates a Series from a slice of int32 values.
TODO(poopoothegorilla): might be worth creating a pool of builders and recycling them. TODO(poopoothegorilla): should the arrow.Field be replaced by a string param and constructed in the function?
func FromInterface ¶
FromInterface creates a Series from a slice of supported types.
func FromString ¶
FromString creates a Series from a slice of string values.
func (Series) Abs ¶
Abs returns a Series with all absolute values.
TODO(poopoothegorilla): need to pass valids into new Series.
func (Series) Append ¶
Append returns a Series with the values from the ss Series appended to the s Series.
func (Series) DropIndices ¶
DropIndices returns a Series without values located at the provided indices.
TODO(poopoothegorilla): add DropByMask either as seperate function or choose by options.
func (Series) FindIndices ¶
FindIndices returns a slice of indices where the value exists.
func (Series) Map ¶
Map applies the fn function to all values in the s Series and returns a Series with the resulting values.
func (Series) Median ¶
Median returns the median value of the Series as a float64.
TODO(poopoothegorilla): inefficient could be improved
func (Series) NAIndices ¶
NAIndices returns the indices where values are null.
TODO{poopoothegorilla): COULD BE IMPROVED PERFORMANCE WISE... MAYBE USE NULL BITMASK
func (Series) SelectIndices ¶
SelectIndices returns a Series with values only present in the provided indices.
func (Series) SortValues ¶
SortValues returns a Series with sorted values.
TODO(poopoothegorilla): add sort options
func (Series) StringValues ¶
StringValues returns the values of the Series as a slice of strings.
func (Series) Subtract ¶
Subtract subtracts two equal length and type Series and returns the resulting Series.