Documentation
¶
Index ¶
- func Len(s Series) int
- func Range(start, end int) []int
- func Seq(start, end, step int) []int
- func Str(s Series) string
- 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 (d DataFrame) ColIndex(s string) int
- func (df DataFrame) Copy() DataFrame
- func (a DataFrame) CrossJoin(b DataFrame) DataFrame
- func (df DataFrame) Dim() (dim [2]int)
- func (df DataFrame) Err() error
- func (df DataFrame) Filter(filters ...F) DataFrame
- func (a DataFrame) InnerJoin(b DataFrame, keys ...string) DataFrame
- func (a DataFrame) LeftJoin(b DataFrame, keys ...string) 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 (a DataFrame) OuterJoin(b DataFrame, keys ...string) DataFrame
- func (df DataFrame) RBind(newdf DataFrame) DataFrame
- func (df DataFrame) Rename(newname, oldname string) DataFrame
- func (a DataFrame) RightJoin(b DataFrame, keys ...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 F
- 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(x interface{})
- func (s Series) Compare(comparator string, comparando interface{}) ([]bool, error)
- func (s Series) Concat(x Series) Series
- func (s Series) Copy() Series
- func (s Series) Empty() Series
- func (s Series) Err() error
- func (s Series) Records() []string
- func (s Series) String() string
- func (s Series) Subset(indexes interface{}) Series
- func (s Series) Type() string
- func (s Series) Val(i int) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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) Col ¶ added in v0.5.0
Col returns the Series with the given column name contained in the DataFrame
func (DataFrame) ColIndex ¶ added in v0.6.0
ColIndex returns the index of the column with name `s`. If it fails to find the column it returns -1 instead.
func (DataFrame) CrossJoin ¶ added in v0.6.0
CrossJoin returns a DataFrame containing the cross join of two DataFrames. This operation matches all rows that appear on both dataframes.
func (DataFrame) InnerJoin ¶ added in v0.6.0
InnerJoin returns a DataFrame containing the inner join of two DataFrames. This operation matches all rows that appear on both dataframes.
func (DataFrame) LeftJoin ¶ added in v0.6.0
LeftJoin returns a DataFrame containing the left join of two DataFrames. This operation matches all rows that appear on both dataframes.
func (DataFrame) Mutate ¶ added in v0.5.0
Mutate changes a column of the DataFrame with the given Series
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) OuterJoin ¶ added in v0.6.0
OuterJoin returns a DataFrame containing the outer join of two DataFrames. This operation matches all rows that appear on both dataframes.
func (DataFrame) RightJoin ¶ added in v0.6.0
RightJoin returns a DataFrame containing the right join of two DataFrames. This operation matches all rows that appear on both dataframes.
func (DataFrame) SaveRecords ¶
type Series ¶ added in v0.5.0
type Series struct { Name string // The name of the series // contains filtered or unexported fields }
Series is the main structure for a series of elements of the same type. It is the primary building block of a DataFrame.
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
func (*Series) Append ¶ added in v0.5.0
func (s *Series) Append(x interface{})
Append adds elements to the end of the Series
func (Series) Compare ¶ added in v0.5.0
Compare compares the values of a Series with other series, scalars, text, etc
func (Series) Subset ¶ added in v0.5.0
Subset returns a subset of the series based on the given indexes