Documentation
¶
Index ¶
- type Bool
- type C
- type Cell
- type Cells
- type DataFrame
- func Cbind(a DataFrame, b DataFrame) (*DataFrame, error)
- func CrossJoin(a DataFrame, b DataFrame) (*DataFrame, error)
- func InnerJoin(a DataFrame, b DataFrame, keys ...string) (*DataFrame, error)
- func LeftJoin(a DataFrame, b DataFrame, keys ...string) (*DataFrame, error)
- func New(colConst ...C) (*DataFrame, error)
- func Rbind(a DataFrame, b DataFrame) (*DataFrame, error)
- func RightJoin(b DataFrame, a DataFrame, keys ...string) (*DataFrame, error)
- 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) NCols() int
- func (df DataFrame) NRows() int
- 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 ¶
This section is empty.
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 Cell ¶ added in v0.4.0
type Cell interface {
String() string
Int() (*int, error)
Float() (*float64, error)
Bool() (*bool, error)
NA() Cell
IsNA() bool
Checksum() [16]byte
Copy() Cell
}
Cell is the interface that every cell in a DataFrame needs to comply with
type DataFrame ¶
type DataFrame struct {
Columns columns
// contains filtered or unexported fields
}
DataFrame is the base data structure
func CrossJoin ¶ added in v0.4.0
CrossJoin returns a DataFrame containing the cartesian product of the rows on both DataFrames.
func InnerJoin ¶ added in v0.4.0
InnerJoin returns a DataFrame containing the inner join of two other DataFrames. This operation matches all rows that appear on both dataframes.
func LeftJoin ¶ added in v0.4.0
LeftJoin returns a DataFrame containing the left join of two other DataFrames. This operation matches all rows that appear on the left DataFrame and matches it with the existing ones on the right one, filling the missing rows on the right with an empty value.
func RightJoin ¶ added in v0.4.0
RightJoin returns a DataFrame containing the right join of two other DataFrames. This operation matches all rows that appear on the right DataFrame and matches it with the existing ones on the left one, filling the missing rows on the left with an empty value.
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) NCols ¶ added in v0.4.0
NCols is the getter method for the number of rows in a DataFrame
func (DataFrame) NRows ¶ added in v0.4.0
NRows is the getter method for the number of rows in a DataFrame
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
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is an alias for string to be able to implement custom methods