Documentation
¶
Index ¶
- func Bools(args ...interface{}) cells
- func Floats(args ...interface{}) cells
- func Ints(args ...interface{}) cells
- func Strings(args ...interface{}) cells
- type Bool
- type C
- type DataFrame
- func (df DataFrame) Dim() (dim [2]int)
- func (df DataFrame) Duplicated() (*DataFrame, error)
- func (df *DataFrame) LoadAndParse(records [][]string, types interface{}) error
- func (df *DataFrame) LoadData(records [][]string) error
- func (df DataFrame) Names() []string
- func (df DataFrame) RemoveDuplicated() (*DataFrame, error)
- func (df DataFrame) RemoveUnique() (*DataFrame, error)
- func (df DataFrame) SaveRecords() [][]string
- func (df *DataFrame) SetNames(colnames []string) error
- func (df DataFrame) String() (str string)
- func (df DataFrame) Subset(subsetCols interface{}, subsetRows interface{}) (*DataFrame, error)
- func (df DataFrame) SubsetColumns(subset interface{}) (*DataFrame, error)
- func (df DataFrame) SubsetRows(subset interface{}) (*DataFrame, error)
- func (df DataFrame) Unique() (*DataFrame, error)
- type Float
- type Int
- type R
- type String
- type T
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 C ¶
type C struct {
Colname string
Elements cells
}
C represents a way to pass Colname and Elements to a DF constructor
type DataFrame ¶
type DataFrame struct {
// contains filtered or unexported fields
}
DataFrame is the base data structure
func (DataFrame) Dim ¶
Dim will return the current dimensions of the DataFrame in a two element array where the first element is the number of rows and the second the number of columns.
func (DataFrame) Duplicated ¶
Duplicated will return the first appearance of the duplicated rows in a DataFrame. The order of the rows will not be preserved.
func (*DataFrame) LoadAndParse ¶
LoadAndParse will load the data from a multidimensional array of strings and parse it accordingly with the given types element. The types element can be a string array with matching dimensions to the number of columns or a DataFrame.T object.
func (*DataFrame) LoadData ¶
LoadData will load the data from a multidimensional array of strings into a DataFrame object.
func (DataFrame) RemoveDuplicated ¶
RemoveDuplicated will return all unique rows in a DataFrame and the first appearance of all duplicated rows. The order of the rows will not be preserved.
func (DataFrame) RemoveUnique ¶
RemoveUnique will return all duplicated rows inside a DataFrame
func (DataFrame) SaveRecords ¶
SaveRecords will save data to records in [][]string format
func (DataFrame) Subset ¶
Subset will return a DataFrame that contains only the columns and rows contained on the given subset
func (DataFrame) SubsetColumns ¶
SubsetColumns will return a DataFrame that contains only the columns contained on the given subset
func (DataFrame) SubsetRows ¶
SubsetRows will return a DataFrame that contains only the selected rows
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
Float is an alias for float64 to be able to implement custom methods
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int is an alias for int to be able to implement custom methods