Introduction
A Series is one of the fundamental types used in gambas. It represents a column of data.
The Series type is defined as per below:
type Series struct {
data []interface{}
index IndexData
name string
dtype string
}
dataholds the column data.indexholds the index of theSeriesobject.nameis the name of theSeriesobject.dtypeis the data type of the data in theSeriesobject.
The fields are private, but gambas provides accessors to get these fields.
func (s Series) Data() []interface{}
func (s Series) Index() IndexData
func (s Series) Name() string
func (s Series) Dtype() string
Series's make up a DataFrame.