Documentation
¶
Index ¶
- type DataFrame
- func Apply[S common.Frame, D common.Frame](s *DataFrame[S], fn func(*DataFrame[S]) *DataFrame[D]) (*DataFrame[D], error)
- func AsType[S common.Frame, D common.Frame](sourceDf *DataFrame[S]) (*DataFrame[D], error)
- func NewDataframe[T common.Frame](indexes []string, columns []string, data [][]*T) (*DataFrame[T], error)
- func NewDataframeWithRowMap[T common.Frame](indexes []string, columns []string, data map[string][]*T) (*DataFrame[T], error)
- func Transform[S common.Frame, D common.Frame](sourceDf *DataFrame[S], fn func(*S) *D) (*DataFrame[D], error)
- type IDataFrame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataFrame ¶
type DataFrame[T common.Frame] struct { Indexes []string Columns []string Values [][]*T Series []*series.Series[T] DType string }
func NewDataframe ¶
func NewDataframeWithRowMap ¶
func NewDataframeWithRowMap[T common.Frame]( indexes []string, columns []string, data map[string][]*T, ) (*DataFrame[T], error)
NewDataframeWithRowMap create data frame with map Row data
data := map[string][]int{ "row1": {1,2,3}, "row2": {4,5,6}, "row3": {7,8,9} }
Click to show internal directories.
Click to hide internal directories.