Introduction
A DataFrame is one of the fundamental types used in gambas. It represents a tabular 2D data. DataFrame is a column-based data, meaning that it is made of several Series's.
The DataFrame type is defined as per below:
type DataFrame struct {
series []Series
index IndexData
columns []string
}
seriesholds theSeriesobjects that make up theDataFrameobject.indexholds the index of theDataFrameobject.columnsis the names of columns in theDataFrameobject.
The fields are private, but gambas provides accessors to get these fields.
func (df DataFrame) Series() []Series {
return df.series
}
func (df DataFrame) Index() IndexData {
return df.index
}
func (df DataFrame) Columns() []string {
return df.columns
}