Documentation
¶
Index ¶
- func Addr(s Series) []string
- func Len(s Series) int
- func Range(start, end int) []int
- func Seq(start, end, step int) []int
- func Str(s Series) string
- func Type(s Series) string
- type Bool
- type BoolElements
- type DataFrame
- func New(series ...Series) DataFrame
- func ReadCSV(str string, types ...string) DataFrame
- func ReadJSON(r io.Reader, types ...string) DataFrame
- func ReadJSONString(str string, types ...string) DataFrame
- func ReadMaps(maps []map[string]interface{}, types ...string) DataFrame
- func ReadRecords(records [][]string, types ...string) DataFrame
- func (df DataFrame) CBind(newdf DataFrame) DataFrame
- func (df DataFrame) Col(colname string) Series
- func (df DataFrame) Copy() DataFrame
- func (df DataFrame) Dim() (dim [2]int)
- func (df DataFrame) Err() error
- func (df DataFrame) Filter(filters ...F) DataFrame
- func (df DataFrame) Mutate(colname string, series Series) DataFrame
- func (df DataFrame) Names() []string
- func (df DataFrame) Ncol() int
- func (df DataFrame) Nrow() int
- func (df DataFrame) RBind(newdf DataFrame) DataFrame
- func (df DataFrame) Rename(newname, oldname string) DataFrame
- func (df DataFrame) SaveCSV() ([]byte, error)
- func (df DataFrame) SaveJSON() ([]byte, error)
- func (df DataFrame) SaveMaps() []map[string]interface{}
- func (df DataFrame) SaveRecords() [][]string
- func (df DataFrame) Select(colnames ...string) DataFrame
- func (df DataFrame) SetNames(colnames []string) error
- func (df DataFrame) String() (str string)
- func (df DataFrame) Subset(indexes interface{}) DataFrame
- func (df DataFrame) Types() []string
- type Elements
- type F
- type Float
- type FloatElements
- type Int
- type IntElements
- type Series
- func Bools(args ...interface{}) Series
- func Floats(args ...interface{}) Series
- func Ints(args ...interface{}) Series
- func NamedBools(name string, args ...interface{}) Series
- func NamedFloats(name string, args ...interface{}) Series
- func NamedInts(name string, args ...interface{}) Series
- func NamedStrings(name string, args ...interface{}) Series
- func Strings(args ...interface{}) Series
- func (s Series) Append(newSeries Series) Series
- func (s Series) Compare(comparator string, comparando interface{}) ([]bool, error)
- func (s Series) Copy() Series
- func (s Series) Err() error
- func (s Series) Records() []string
- func (s Series) String() string
- func (s Series) Subset(indexes interface{}) (Series, error)
- func (s Series) Val(i int) interface{}
- type String
- type StringElements
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool is an alias for string to be able to implement custom methods
type BoolElements ¶ added in v0.5.0
type BoolElements []Bool
func (BoolElements) Copy ¶ added in v0.5.0
func (s BoolElements) Copy() Elements
func (BoolElements) Records ¶ added in v0.5.0
func (s BoolElements) Records() []string
func (BoolElements) String ¶ added in v0.5.0
func (s BoolElements) String() string
type DataFrame ¶
type DataFrame struct {
// contains filtered or unexported fields
}
DataFrame is the base data structure
func ReadJSONString ¶ added in v0.5.0
func ReadRecords ¶ added in v0.5.0
func (DataFrame) CBind ¶ added in v0.5.0
TODO: Expand to accept DataFrames, Series, and potentially other objects
func (DataFrame) Ncol ¶ added in v0.5.0
NCols is the getter method for the number of rows in a DataFrame
func (DataFrame) Nrow ¶ added in v0.5.0
NRows is the getter method for the number of rows in a DataFrame
func (DataFrame) RBind ¶ added in v0.5.0
TODO: Expand to accept DataFrames, Series, and potentially other objects
func (DataFrame) SaveRecords ¶
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
Float is an alias for float64 to be able to implement custom methods
type FloatElements ¶ added in v0.5.0
type FloatElements []Float
func (FloatElements) Copy ¶ added in v0.5.0
func (s FloatElements) Copy() Elements
func (FloatElements) Records ¶ added in v0.5.0
func (s FloatElements) Records() []string
func (FloatElements) String ¶ added in v0.5.0
func (s FloatElements) String() string
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int is an alias for int to be able to implement custom methods
type IntElements ¶ added in v0.5.0
type IntElements []Int
func (IntElements) Copy ¶ added in v0.5.0
func (s IntElements) Copy() Elements
func (IntElements) Records ¶ added in v0.5.0
func (s IntElements) Records() []string
func (IntElements) String ¶ added in v0.5.0
func (s IntElements) String() string
type Series ¶ added in v0.5.0
type Series struct {
Name string // The name of the series
Elements Elements // The values of the elements
// contains filtered or unexported fields
}
TODO: Refactor error returns
func NamedBools ¶ added in v0.5.0
NamedBools is a constructor for a named Bool series
func NamedFloats ¶ added in v0.5.0
NamedFloats is a constructor for a named Float series
func NamedStrings ¶ added in v0.5.0
NamedStrings is a constructor for a named String series
func Strings ¶
func Strings(args ...interface{}) Series
Strings is a constructor for a String series
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is an alias for string to be able to implement custom methods
type StringElements ¶ added in v0.5.0
type StringElements []String
func (StringElements) Copy ¶ added in v0.5.0
func (s StringElements) Copy() Elements
func (StringElements) Records ¶ added in v0.5.0
func (s StringElements) Records() []string
func (StringElements) String ¶ added in v0.5.0
func (s StringElements) String() string