MCPcopy Create free account
hub / github.com/datasweet/datatable / newColumnSerie

Function newColumnSerie

column.go:144–150  ·  view source on GitHub ↗

newColumnSerie to create a serie from a known type

(ctyp ColumnType, options ColumnOptions)

Source from the content-addressed store, hash-verified

142
143// newColumnSerie to create a serie from a known type
144func newColumnSerie(ctyp ColumnType, options ColumnOptions) (serie.Serie, error) {
145 if s, ok := ctypes[ctyp]; ok {
146 return s(options), nil
147 }
148 err := errors.Errorf("unknown column type '%s'", ctyp)
149 return nil, errors.Wrap(err, ErrUnknownColumnType.Error())
150}
151
152// Column describes a column in our datatable
153type Column interface {

Callers 2

AddColumnMethod · 0.85
TestSerieFactoryFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSerieFactoryFunction · 0.68