Documentation ¶
Index ¶
- Constants
- Variables
- func Count() aggregator
- func DivMod(n, d int64) (q, r int64)
- func IsIbmSpecialMissingValue(ieee float64) bool
- func Max(name string) aggregator
- func Mean(name string) aggregator
- func Median(name string) aggregator
- func Min(name string) aggregator
- func NewNamestrV56() *__NAMESTRv56
- func NewNamestrV89() *__NAMESTRv89
- func Std(name string) aggregator
- func Sum(name string) aggregator
- type AggregateType
- type BaseDataFrame
- func (df BaseDataFrame) AddSeries(name string, series Series) DataFrame
- func (df BaseDataFrame) AddSeriesFromBools(name string, data []bool, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) AddSeriesFromDurations(name string, data []time.Duration, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) AddSeriesFromFloat64s(name string, data []float64, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) AddSeriesFromInt64s(name string, data []int64, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) AddSeriesFromInts(name string, data []int, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) AddSeriesFromStrings(name string, data []string, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) AddSeriesFromTimes(name string, data []time.Time, nullMask []bool, makeCopy bool) DataFrame
- func (df BaseDataFrame) Agg(aggregators ...aggregator) aggregatorBuilder
- func (df BaseDataFrame) At(index int) Series
- func (df BaseDataFrame) C(name string) Series
- func (df BaseDataFrame) Describe() string
- func (df BaseDataFrame) Filter(mask any) DataFrame
- func (df BaseDataFrame) FromCsv() *CsvReader
- func (df BaseDataFrame) FromJson() *JsonReader
- func (df BaseDataFrame) FromXlsx() *XlsxReader
- func (df BaseDataFrame) FromXpt() *XptReader
- func (df BaseDataFrame) GetContext() *Context
- func (df BaseDataFrame) GetError() error
- func (df BaseDataFrame) GetSeriesIndex(name string) int
- func (df BaseDataFrame) GroupBy(by ...string) DataFrame
- func (df BaseDataFrame) IsErrored() bool
- func (df BaseDataFrame) IsGrouped() bool
- func (df BaseDataFrame) Join(how DataFrameJoinType, other DataFrame, on ...string) DataFrame
- func (df BaseDataFrame) Len() int
- func (df BaseDataFrame) Less(i, j int) bool
- func (df BaseDataFrame) NCols() int
- func (df BaseDataFrame) NRows() int
- func (df BaseDataFrame) NameAt(index int) string
- func (df BaseDataFrame) Names() []string
- func (df BaseDataFrame) OrderBy(params ...SortParam) DataFrame
- func (df BaseDataFrame) PPrint(params PPrintParams) DataFrame
- func (df BaseDataFrame) Records(header bool) [][]string
- func (df BaseDataFrame) Replace(name string, s Series) DataFrame
- func (df BaseDataFrame) Select(selectors ...string) DataFrame
- func (df BaseDataFrame) SelectAt(indices ...int) DataFrame
- func (df BaseDataFrame) Swap(i, j int)
- func (df BaseDataFrame) Take(params ...int) DataFrame
- func (df BaseDataFrame) ToCsv() *CsvWriter
- func (df BaseDataFrame) ToHtml() *HtmlWriter
- func (df BaseDataFrame) ToJson() *JsonWriter
- func (df BaseDataFrame) ToMarkDown() *MarkDownWriter
- func (df BaseDataFrame) ToXlsx() *XlsxWriter
- func (df BaseDataFrame) ToXpt() *XptWriter
- func (df BaseDataFrame) Types() []preludiometa.BaseType
- func (df BaseDataFrame) Ungroup() DataFrame
- type BaseDataFramePartitionEntry
- type Context
- type CsvReader
- func (r *CsvReader) Read() DataFrame
- func (r *CsvReader) SetContext(ctx *Context) *CsvReader
- func (r *CsvReader) SetDelimiter(delimiter rune) *CsvReader
- func (r *CsvReader) SetGuessDataTypeLen(guessDataTypeLen int) *CsvReader
- func (r *CsvReader) SetHeader(header bool) *CsvReader
- func (r *CsvReader) SetNullValues(nullValues bool) *CsvReader
- func (r *CsvReader) SetPath(path string) *CsvReader
- func (r *CsvReader) SetReader(reader io.Reader) *CsvReader
- func (r *CsvReader) SetRows(rows int) *CsvReader
- func (r *CsvReader) SetSchema(schema *preludiometa.Schema) *CsvReader
- type CsvWriter
- func (w *CsvWriter) SetDataFrame(dataframe DataFrame) *CsvWriter
- func (w *CsvWriter) SetDelimiter(delimiter rune) *CsvWriter
- func (w *CsvWriter) SetFormat(format bool) *CsvWriter
- func (w *CsvWriter) SetHeader(header bool) *CsvWriter
- func (w *CsvWriter) SetNaText(naText string) *CsvWriter
- func (w *CsvWriter) SetPath(path string) *CsvWriter
- func (w *CsvWriter) SetWriter(writer io.Writer) *CsvWriter
- func (w *CsvWriter) Write() DataFrame
- type DataFrame
- type DataFrameJoinType
- type Formatter
- type HtmlWriter
- func (w *HtmlWriter) SetDataFrame(dataframe DataFrame) *HtmlWriter
- func (w *HtmlWriter) SetDatatables(datatables bool) *HtmlWriter
- func (w *HtmlWriter) SetIndent(indent string) *HtmlWriter
- func (w *HtmlWriter) SetNaText(naText string) *HtmlWriter
- func (w *HtmlWriter) SetNewLine(newLine string) *HtmlWriter
- func (w *HtmlWriter) SetPath(path string) *HtmlWriter
- func (w *HtmlWriter) SetWriter(writer io.Writer) *HtmlWriter
- func (w *HtmlWriter) Write() DataFrame
- type JsonReader
- type JsonWriter
- func (w *JsonWriter) SetDataFrame(dataframe DataFrame) *JsonWriter
- func (w *JsonWriter) SetIndent(indent string) *JsonWriter
- func (w *JsonWriter) SetNewLine(newLine string) *JsonWriter
- func (w *JsonWriter) SetPath(path string) *JsonWriter
- func (w *JsonWriter) SetWriter(writer io.Writer) *JsonWriter
- func (w *JsonWriter) Write() DataFrame
- type MapFunc
- type MapFuncNull
- type MarkDownWriter
- func (w *MarkDownWriter) SetDataFrame(dataframe DataFrame) *MarkDownWriter
- func (w *MarkDownWriter) SetHeader(header bool) *MarkDownWriter
- func (w *MarkDownWriter) SetIndex(index bool) *MarkDownWriter
- func (w *MarkDownWriter) SetNaText(naText string) *MarkDownWriter
- func (w *MarkDownWriter) SetPath(path string) *MarkDownWriter
- func (w *MarkDownWriter) SetWriter(writer io.Writer) *MarkDownWriter
- func (w *MarkDownWriter) Write() DataFrame
- type NullableBool
- type NullableDuration
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt16
- type NullableInt32
- type NullableInt64
- type NullableInt8
- type NullableString
- type NullableTime
- type NumericFormatter
- func (f *NumericFormatter) Compute()
- func (f *NumericFormatter) Format(width int, val any, isNa bool) string
- func (f *NumericFormatter) GetMaxWidth() int
- func (f *NumericFormatter) Push(val any)
- func (f *NumericFormatter) SetDecimalDigits(decimalDigits int) *NumericFormatter
- func (f *NumericFormatter) SetInfText(infText string) *NumericFormatter
- func (f *NumericFormatter) SetJustifyLeft(justifyLeft bool) *NumericFormatter
- func (f *NumericFormatter) SetMaxDigits(maxDigits int) *NumericFormatter
- func (f *NumericFormatter) SetMovingDigits(movingDigits int) *NumericFormatter
- func (f *NumericFormatter) SetNaText(naText string) *NumericFormatter
- func (f *NumericFormatter) SetScientificThreshold(scientificThreshold int) *NumericFormatter
- func (f *NumericFormatter) SetThreshold(threshold int) *NumericFormatter
- func (f *NumericFormatter) SetTruncateOutput(truncateOutput bool) *NumericFormatter
- func (f *NumericFormatter) SetUseLipGloss(useLipGloss bool) *NumericFormatter
- type PPrintParams
- func (ppp PPrintParams) SetIndent(s string) PPrintParams
- func (ppp PPrintParams) SetIndex(b bool) PPrintParams
- func (ppp PPrintParams) SetMaxColWidth(n int) PPrintParams
- func (ppp PPrintParams) SetMinColWidth(n int) PPrintParams
- func (ppp PPrintParams) SetNRows(n int) PPrintParams
- func (ppp PPrintParams) SetTailLen(n int) PPrintParams
- func (ppp PPrintParams) SetUseLipGloss(b bool) PPrintParams
- func (ppp PPrintParams) SetWidth(n int) PPrintParams
- type RowDataProvider
- type SasFloat
- type Series
- type SeriesBool
- func (s SeriesBool) Add(other any) Series
- func (s SeriesBool) All() bool
- func (s SeriesBool) And(other any) Series
- func (s SeriesBool) Any() bool
- func (s SeriesBool) Append(v any) Series
- func (s SeriesBool) Bools() []bool
- func (s SeriesBool) Cast(t preludiometa.BaseType) Series
- func (s SeriesBool) Copy() Series
- func (s SeriesBool) Data() any
- func (s SeriesBool) DataAsNullable() any
- func (s SeriesBool) DataAsString() []string
- func (s SeriesBool) Div(other any) Series
- func (s SeriesBool) Eq(other any) Series
- func (s SeriesBool) Exp(other any) Series
- func (s SeriesBool) Filter(mask any) Series
- func (s SeriesBool) Ge(other any) Series
- func (s SeriesBool) Get(i int) any
- func (s SeriesBool) GetAsString(i int) string
- func (s SeriesBool) GetContext() *Context
- func (s SeriesBool) GetError() string
- func (s SeriesBool) GetNullMask() []bool
- func (s SeriesBool) GetPartition() SeriesPartition
- func (s SeriesBool) GroupBy(partition SeriesPartition) Series
- func (s SeriesBool) Gt(other any) Series
- func (s SeriesBool) HasNull() bool
- func (s SeriesBool) IsError() bool
- func (s SeriesBool) IsGrouped() bool
- func (s SeriesBool) IsNull(i int) bool
- func (s SeriesBool) IsNullable() bool
- func (s SeriesBool) IsSorted() SeriesSortOrder
- func (s SeriesBool) Le(other any) Series
- func (s SeriesBool) Len() int
- func (s SeriesBool) Less(i, j int) bool
- func (s SeriesBool) Lt(other any) Series
- func (s SeriesBool) MakeNonNullable() Series
- func (s SeriesBool) MakeNullable() Series
- func (s SeriesBool) Map(f MapFunc) Series
- func (s SeriesBool) MapNull(f MapFuncNull) Series
- func (s SeriesBool) Mod(other any) Series
- func (s SeriesBool) Mul(other any) Series
- func (s SeriesBool) Ne(other any) Series
- func (s SeriesBool) Not() Series
- func (s SeriesBool) NullCount() int
- func (s SeriesBool) Or(other any) Series
- func (s SeriesBool) Set(i int, v any) Series
- func (s SeriesBool) SetNullMask(mask []bool) Series
- func (s SeriesBool) Sort() Series
- func (s SeriesBool) SortRev() Series
- func (s SeriesBool) Sub(other any) Series
- func (s SeriesBool) Swap(i, j int)
- func (s SeriesBool) Take(params ...int) Series
- func (s SeriesBool) Type() preludiometa.BaseType
- func (s SeriesBool) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesBool) UnGroup() Series
- type SeriesBoolPartition
- type SeriesDuration
- func (s SeriesDuration) Add(other any) Series
- func (s SeriesDuration) And(other any) Series
- func (s SeriesDuration) Append(v any) Series
- func (s SeriesDuration) Cast(t preludiometa.BaseType) Series
- func (s SeriesDuration) Copy() Series
- func (s SeriesDuration) Data() any
- func (s SeriesDuration) DataAsNullable() any
- func (s SeriesDuration) DataAsString() []string
- func (s SeriesDuration) Div(other any) Series
- func (s SeriesDuration) Eq(other any) Series
- func (s SeriesDuration) Exp(other any) Series
- func (s SeriesDuration) Filter(mask any) Series
- func (s SeriesDuration) Ge(other any) Series
- func (s SeriesDuration) Get(i int) any
- func (s SeriesDuration) GetAsString(i int) string
- func (s SeriesDuration) GetContext() *Context
- func (s SeriesDuration) GetError() string
- func (s SeriesDuration) GetNullMask() []bool
- func (s SeriesDuration) GetPartition() SeriesPartition
- func (s SeriesDuration) GroupBy(partition SeriesPartition) Series
- func (s SeriesDuration) Gt(other any) Series
- func (s SeriesDuration) HasNull() bool
- func (s SeriesDuration) IsError() bool
- func (s SeriesDuration) IsGrouped() bool
- func (s SeriesDuration) IsNull(i int) bool
- func (s SeriesDuration) IsNullable() bool
- func (s SeriesDuration) IsSorted() SeriesSortOrder
- func (s SeriesDuration) Le(other any) Series
- func (s SeriesDuration) Len() int
- func (s SeriesDuration) Less(i, j int) bool
- func (s SeriesDuration) Lt(other any) Series
- func (s SeriesDuration) MakeNonNullable() Series
- func (s SeriesDuration) MakeNullable() Series
- func (s SeriesDuration) Map(f MapFunc) Series
- func (s SeriesDuration) MapNull(f MapFuncNull) Series
- func (s SeriesDuration) Mod(other any) Series
- func (s SeriesDuration) Mul(other any) Series
- func (s SeriesDuration) Ne(other any) Series
- func (s SeriesDuration) NullCount() int
- func (s SeriesDuration) Or(other any) Series
- func (s SeriesDuration) Set(i int, v any) Series
- func (s SeriesDuration) SetNullMask(mask []bool) Series
- func (s SeriesDuration) Sort() Series
- func (s SeriesDuration) SortRev() Series
- func (s SeriesDuration) Sub(other any) Series
- func (s SeriesDuration) Swap(i, j int)
- func (s SeriesDuration) Take(params ...int) Series
- func (s SeriesDuration) Times() []time.Duration
- func (s SeriesDuration) Type() preludiometa.BaseType
- func (s SeriesDuration) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesDuration) UnGroup() Series
- type SeriesDurationPartition
- type SeriesError
- func (s SeriesError) Add(other any) Series
- func (s SeriesError) And(other any) Series
- func (s SeriesError) Append(v any) Series
- func (s SeriesError) Cast(t preludiometa.BaseType) Series
- func (s SeriesError) Copy() Series
- func (s SeriesError) Data() any
- func (s SeriesError) DataAsNullable() any
- func (s SeriesError) DataAsString() []string
- func (s SeriesError) Div(other any) Series
- func (s SeriesError) Eq(other any) Series
- func (s SeriesError) Exp(other any) Series
- func (s SeriesError) Filter(mask any) Series
- func (s SeriesError) Ge(other any) Series
- func (s SeriesError) Get(i int) any
- func (s SeriesError) GetAsString(i int) string
- func (s SeriesError) GetContext() *Context
- func (s SeriesError) GetError() string
- func (s SeriesError) GetNullMask() []bool
- func (s SeriesError) GetPartition() SeriesPartition
- func (s SeriesError) GroupBy(gp SeriesPartition) Series
- func (s SeriesError) Gt(other any) Series
- func (s SeriesError) HasNull() bool
- func (s SeriesError) IsError() bool
- func (s SeriesError) IsGrouped() bool
- func (s SeriesError) IsNull(i int) bool
- func (s SeriesError) IsNullable() bool
- func (s SeriesError) IsSorted() SeriesSortOrder
- func (s SeriesError) Le(other any) Series
- func (s SeriesError) Len() int
- func (s SeriesError) Less(i, j int) bool
- func (s SeriesError) Lt(other any) Series
- func (s SeriesError) MakeNonNullable() Series
- func (s SeriesError) MakeNullable() Series
- func (s SeriesError) Map(f MapFunc) Series
- func (s SeriesError) MapNull(f MapFuncNull) Series
- func (s SeriesError) Mod(other any) Series
- func (s SeriesError) Mul(other any) Series
- func (s SeriesError) Ne(other any) Series
- func (s SeriesError) NullCount() int
- func (s SeriesError) Or(other any) Series
- func (s SeriesError) Set(i int, v any) Series
- func (s SeriesError) SetNullMask(mask []bool) Series
- func (s SeriesError) Sort() Series
- func (s SeriesError) SortRev() Series
- func (s SeriesError) Sub(other any) Series
- func (s SeriesError) Swap(i, j int)
- func (s SeriesError) Take(params ...int) Series
- func (s SeriesError) Type() preludiometa.BaseType
- func (s SeriesError) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesError) UnGroup() Series
- type SeriesFloat64
- func (s SeriesFloat64) Add(other any) Series
- func (s SeriesFloat64) And(other any) Series
- func (s SeriesFloat64) Append(v any) Series
- func (s SeriesFloat64) Cast(t preludiometa.BaseType) Series
- func (s SeriesFloat64) Copy() Series
- func (s SeriesFloat64) Data() any
- func (s SeriesFloat64) DataAsNullable() any
- func (s SeriesFloat64) DataAsString() []string
- func (s SeriesFloat64) Div(other any) Series
- func (s SeriesFloat64) Eq(other any) Series
- func (s SeriesFloat64) Exp(other any) Series
- func (s SeriesFloat64) Filter(mask any) Series
- func (s SeriesFloat64) Float64s() []float64
- func (s SeriesFloat64) Ge(other any) Series
- func (s SeriesFloat64) Get(i int) any
- func (s SeriesFloat64) GetAsString(i int) string
- func (s SeriesFloat64) GetContext() *Context
- func (s SeriesFloat64) GetError() string
- func (s SeriesFloat64) GetNullMask() []bool
- func (s SeriesFloat64) GetPartition() SeriesPartition
- func (s SeriesFloat64) GroupBy(partition SeriesPartition) Series
- func (s SeriesFloat64) Gt(other any) Series
- func (s SeriesFloat64) HasNull() bool
- func (s SeriesFloat64) IsError() bool
- func (s SeriesFloat64) IsGrouped() bool
- func (s SeriesFloat64) IsNull(i int) bool
- func (s SeriesFloat64) IsNullable() bool
- func (s SeriesFloat64) IsSorted() SeriesSortOrder
- func (s SeriesFloat64) Le(other any) Series
- func (s SeriesFloat64) Len() int
- func (s SeriesFloat64) Less(i, j int) bool
- func (s SeriesFloat64) Lt(other any) Series
- func (s SeriesFloat64) MakeNonNullable() Series
- func (s SeriesFloat64) MakeNullable() Series
- func (s SeriesFloat64) Map(f MapFunc) Series
- func (s SeriesFloat64) MapNull(f MapFuncNull) Series
- func (s SeriesFloat64) Min() any
- func (s SeriesFloat64) Mod(other any) Series
- func (s SeriesFloat64) Mul(other any) Series
- func (s SeriesFloat64) Ne(other any) Series
- func (s SeriesFloat64) Neg() Series
- func (s SeriesFloat64) NullCount() int
- func (s SeriesFloat64) Or(other any) Series
- func (s SeriesFloat64) Set(i int, v any) Series
- func (s SeriesFloat64) SetNullMask(mask []bool) Series
- func (s SeriesFloat64) Sort() Series
- func (s SeriesFloat64) SortRev() Series
- func (s SeriesFloat64) Sub(other any) Series
- func (s SeriesFloat64) Swap(i, j int)
- func (s SeriesFloat64) Take(params ...int) Series
- func (s SeriesFloat64) Type() preludiometa.BaseType
- func (s SeriesFloat64) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesFloat64) UnGroup() Series
- type SeriesFloat64Partition
- type SeriesInt
- func (s SeriesInt) Add(other any) Series
- func (s SeriesInt) And(other any) Series
- func (s SeriesInt) Append(v any) Series
- func (s SeriesInt) Cast(t preludiometa.BaseType) Series
- func (s SeriesInt) Copy() Series
- func (s SeriesInt) Data() any
- func (s SeriesInt) DataAsNullable() any
- func (s SeriesInt) DataAsString() []string
- func (s SeriesInt) Div(other any) Series
- func (s SeriesInt) Eq(other any) Series
- func (s SeriesInt) Exp(other any) Series
- func (s SeriesInt) Filter(mask any) Series
- func (s SeriesInt) Ge(other any) Series
- func (s SeriesInt) Get(i int) any
- func (s SeriesInt) GetAsString(i int) string
- func (s SeriesInt) GetContext() *Context
- func (s SeriesInt) GetError() string
- func (s SeriesInt) GetNullMask() []bool
- func (s SeriesInt) GetPartition() SeriesPartition
- func (s SeriesInt) GroupBy(partition SeriesPartition) Series
- func (s SeriesInt) Gt(other any) Series
- func (s SeriesInt) HasNull() bool
- func (s SeriesInt) Ints() []int
- func (s SeriesInt) IsError() bool
- func (s SeriesInt) IsGrouped() bool
- func (s SeriesInt) IsNull(i int) bool
- func (s SeriesInt) IsNullable() bool
- func (s SeriesInt) IsSorted() SeriesSortOrder
- func (s SeriesInt) Le(other any) Series
- func (s SeriesInt) Len() int
- func (s SeriesInt) Less(i, j int) bool
- func (s SeriesInt) Lt(other any) Series
- func (s SeriesInt) MakeNonNullable() Series
- func (s SeriesInt) MakeNullable() Series
- func (s SeriesInt) Map(f MapFunc) Series
- func (s SeriesInt) MapNull(f MapFuncNull) Series
- func (s SeriesInt) Mod(other any) Series
- func (s SeriesInt) Mul(other any) Series
- func (s SeriesInt) Ne(other any) Series
- func (s SeriesInt) Neg() Series
- func (s SeriesInt) NullCount() int
- func (s SeriesInt) Or(other any) Series
- func (s SeriesInt) Set(i int, v any) Series
- func (s SeriesInt) SetNullMask(mask []bool) Series
- func (s SeriesInt) Sort() Series
- func (s SeriesInt) SortRev() Series
- func (s SeriesInt) Sub(other any) Series
- func (s SeriesInt) Swap(i, j int)
- func (s SeriesInt) Take(params ...int) Series
- func (s SeriesInt) Type() preludiometa.BaseType
- func (s SeriesInt) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesInt) UnGroup() Series
- type SeriesInt64
- func (s SeriesInt64) Add(other any) Series
- func (s SeriesInt64) And(other any) Series
- func (s SeriesInt64) Append(v any) Series
- func (s SeriesInt64) Cast(t preludiometa.BaseType) Series
- func (s SeriesInt64) Copy() Series
- func (s SeriesInt64) Data() any
- func (s SeriesInt64) DataAsNullable() any
- func (s SeriesInt64) DataAsString() []string
- func (s SeriesInt64) Div(other any) Series
- func (s SeriesInt64) Eq(other any) Series
- func (s SeriesInt64) Exp(other any) Series
- func (s SeriesInt64) Filter(mask any) Series
- func (s SeriesInt64) Ge(other any) Series
- func (s SeriesInt64) Get(i int) any
- func (s SeriesInt64) GetAsString(i int) string
- func (s SeriesInt64) GetContext() *Context
- func (s SeriesInt64) GetError() string
- func (s SeriesInt64) GetNullMask() []bool
- func (s SeriesInt64) GetPartition() SeriesPartition
- func (s SeriesInt64) GroupBy(partition SeriesPartition) Series
- func (s SeriesInt64) Gt(other any) Series
- func (s SeriesInt64) HasNull() bool
- func (s SeriesInt64) Int64s() []int64
- func (s SeriesInt64) IsError() bool
- func (s SeriesInt64) IsGrouped() bool
- func (s SeriesInt64) IsNull(i int) bool
- func (s SeriesInt64) IsNullable() bool
- func (s SeriesInt64) IsSorted() SeriesSortOrder
- func (s SeriesInt64) Le(other any) Series
- func (s SeriesInt64) Len() int
- func (s SeriesInt64) Less(i, j int) bool
- func (s SeriesInt64) Lt(other any) Series
- func (s SeriesInt64) MakeNonNullable() Series
- func (s SeriesInt64) MakeNullable() Series
- func (s SeriesInt64) Map(f MapFunc) Series
- func (s SeriesInt64) MapNull(f MapFuncNull) Series
- func (s SeriesInt64) Mod(other any) Series
- func (s SeriesInt64) Mul(other any) Series
- func (s SeriesInt64) Ne(other any) Series
- func (s SeriesInt64) Neg() Series
- func (s SeriesInt64) NullCount() int
- func (s SeriesInt64) Or(other any) Series
- func (s SeriesInt64) Set(i int, v any) Series
- func (s SeriesInt64) SetNullMask(mask []bool) Series
- func (s SeriesInt64) Sort() Series
- func (s SeriesInt64) SortRev() Series
- func (s SeriesInt64) Sub(other any) Series
- func (s SeriesInt64) Swap(i, j int)
- func (s SeriesInt64) Take(params ...int) Series
- func (s SeriesInt64) Type() preludiometa.BaseType
- func (s SeriesInt64) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesInt64) UnGroup() Series
- type SeriesInt64Partition
- type SeriesIntPartition
- type SeriesNA
- func (s SeriesNA) Add(other any) Series
- func (s SeriesNA) And(other any) Series
- func (s SeriesNA) Append(v any) Series
- func (s SeriesNA) Cast(t preludiometa.BaseType) Series
- func (s SeriesNA) Copy() Series
- func (s SeriesNA) Data() any
- func (s SeriesNA) DataAsNullable() any
- func (s SeriesNA) DataAsString() []string
- func (s SeriesNA) Div(other any) Series
- func (s SeriesNA) Eq(other any) Series
- func (s SeriesNA) Exp(other any) Series
- func (s SeriesNA) Filter(mask any) Series
- func (s SeriesNA) Ge(other any) Series
- func (s SeriesNA) Get(i int) any
- func (s SeriesNA) GetAsString(i int) string
- func (s SeriesNA) GetContext() *Context
- func (s SeriesNA) GetError() string
- func (s SeriesNA) GetNullMask() []bool
- func (s SeriesNA) GetPartition() SeriesPartition
- func (s SeriesNA) GroupBy(gp SeriesPartition) Series
- func (s SeriesNA) Gt(other any) Series
- func (s SeriesNA) HasNull() bool
- func (s SeriesNA) IsError() bool
- func (s SeriesNA) IsGrouped() bool
- func (s SeriesNA) IsNull(i int) bool
- func (s SeriesNA) IsNullable() bool
- func (s SeriesNA) IsSorted() SeriesSortOrder
- func (s SeriesNA) Le(other any) Series
- func (s SeriesNA) Len() int
- func (s SeriesNA) Less(i, j int) bool
- func (s SeriesNA) Lt(other any) Series
- func (s SeriesNA) MakeNonNullable() Series
- func (s SeriesNA) MakeNullable() Series
- func (s SeriesNA) Map(f MapFunc) Series
- func (s SeriesNA) MapNull(f MapFuncNull) Series
- func (s SeriesNA) Mod(other any) Series
- func (s SeriesNA) Mul(other any) Series
- func (s SeriesNA) Ne(other any) Series
- func (s SeriesNA) Not() Series
- func (s SeriesNA) NullCount() int
- func (s SeriesNA) Or(other any) Series
- func (s SeriesNA) Set(i int, v any) Series
- func (s SeriesNA) SetNullMask(mask []bool) Series
- func (s SeriesNA) Sort() Series
- func (s SeriesNA) SortRev() Series
- func (s SeriesNA) Sub(other any) Series
- func (s SeriesNA) Swap(i, j int)
- func (s SeriesNA) Take(params ...int) Series
- func (s SeriesNA) Type() preludiometa.BaseType
- func (s SeriesNA) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesNA) UnGroup() Series
- type SeriesNAPartition
- type SeriesNumeric
- type SeriesPartition
- type SeriesSortOrder
- type SeriesString
- func (s SeriesString) Add(other any) Series
- func (s SeriesString) And(other any) Series
- func (s SeriesString) Append(v any) Series
- func (s SeriesString) Cast(t preludiometa.BaseType) Series
- func (s SeriesString) Copy() Series
- func (s SeriesString) Data() any
- func (s SeriesString) DataAsNullable() any
- func (s SeriesString) DataAsString() []string
- func (s SeriesString) Div(other any) Series
- func (s SeriesString) Eq(other any) Series
- func (s SeriesString) Exp(other any) Series
- func (s SeriesString) Filter(mask any) Series
- func (s SeriesString) Ge(other any) Series
- func (s SeriesString) Get(i int) any
- func (s SeriesString) GetAsString(i int) string
- func (s SeriesString) GetContext() *Context
- func (s SeriesString) GetError() string
- func (s SeriesString) GetNullMask() []bool
- func (s SeriesString) GetPartition() SeriesPartition
- func (s SeriesString) GroupBy(partition SeriesPartition) Series
- func (s SeriesString) Gt(other any) Series
- func (s SeriesString) HasNull() bool
- func (s SeriesString) IsError() bool
- func (s SeriesString) IsGrouped() bool
- func (s SeriesString) IsNull(i int) bool
- func (s SeriesString) IsNullable() bool
- func (s SeriesString) IsSorted() SeriesSortOrder
- func (s SeriesString) Le(other any) Series
- func (s SeriesString) Len() int
- func (s SeriesString) Less(i, j int) bool
- func (s SeriesString) Lt(other any) Series
- func (s SeriesString) MakeNonNullable() Series
- func (s SeriesString) MakeNullable() Series
- func (s SeriesString) Map(f MapFunc) Series
- func (s SeriesString) MapNull(f MapFuncNull) Series
- func (s SeriesString) Mod(other any) Series
- func (s SeriesString) Mul(other any) Series
- func (s SeriesString) Ne(other any) Series
- func (s SeriesString) NullCount() int
- func (s SeriesString) Or(other any) Series
- func (s SeriesString) ParseTime(layout string) Series
- func (s SeriesString) Replace(old, new string, n int) Series
- func (s SeriesString) Set(i int, v any) Series
- func (s SeriesString) SetNullMask(mask []bool) Series
- func (s SeriesString) Sort() Series
- func (s SeriesString) SortRev() Series
- func (s SeriesString) Strings() []string
- func (s SeriesString) Sub(other any) Series
- func (s SeriesString) Swap(i, j int)
- func (s SeriesString) Take(params ...int) Series
- func (s SeriesString) ToLower() Series
- func (s SeriesString) ToUpper() Series
- func (s SeriesString) Trim(cutset string) Series
- func (s SeriesString) TrimSpace() Series
- func (s SeriesString) Type() preludiometa.BaseType
- func (s SeriesString) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesString) UnGroup() Series
- type SeriesStringPartition
- type SeriesTime
- func (s SeriesTime) Add(other any) Series
- func (s SeriesTime) And(other any) Series
- func (s SeriesTime) Append(v any) Series
- func (s SeriesTime) Cast(t preludiometa.BaseType) Series
- func (s SeriesTime) Copy() Series
- func (s SeriesTime) Data() any
- func (s SeriesTime) DataAsNullable() any
- func (s SeriesTime) DataAsString() []string
- func (s SeriesTime) Div(other any) Series
- func (s SeriesTime) Eq(other any) Series
- func (s SeriesTime) Exp(other any) Series
- func (s SeriesTime) Filter(mask any) Series
- func (s SeriesTime) Ge(other any) Series
- func (s SeriesTime) Get(i int) any
- func (s SeriesTime) GetAsString(i int) string
- func (s SeriesTime) GetContext() *Context
- func (s SeriesTime) GetError() string
- func (s SeriesTime) GetNullMask() []bool
- func (s SeriesTime) GetPartition() SeriesPartition
- func (s SeriesTime) GetTimeFormat() string
- func (s SeriesTime) GroupBy(partition SeriesPartition) Series
- func (s SeriesTime) Gt(other any) Series
- func (s SeriesTime) HasNull() bool
- func (s SeriesTime) IsError() bool
- func (s SeriesTime) IsGrouped() bool
- func (s SeriesTime) IsNull(i int) bool
- func (s SeriesTime) IsNullable() bool
- func (s SeriesTime) IsSorted() SeriesSortOrder
- func (s SeriesTime) Le(other any) Series
- func (s SeriesTime) Len() int
- func (s SeriesTime) Less(i, j int) bool
- func (s SeriesTime) Lt(other any) Series
- func (s SeriesTime) MakeNonNullable() Series
- func (s SeriesTime) MakeNullable() Series
- func (s SeriesTime) Map(f MapFunc) Series
- func (s SeriesTime) MapNull(f MapFuncNull) Series
- func (s SeriesTime) Mod(other any) Series
- func (s SeriesTime) Mul(other any) Series
- func (s SeriesTime) Ne(other any) Series
- func (s SeriesTime) NullCount() int
- func (s SeriesTime) Or(other any) Series
- func (s SeriesTime) Set(i int, v any) Series
- func (s SeriesTime) SetNullMask(mask []bool) Series
- func (s SeriesTime) SetTimeFormat(format string) Series
- func (s SeriesTime) Sort() Series
- func (s SeriesTime) SortRev() Series
- func (s SeriesTime) Sub(other any) Series
- func (s SeriesTime) Swap(i, j int)
- func (s SeriesTime) Take(params ...int) Series
- func (s SeriesTime) Times() []time.Time
- func (s SeriesTime) Type() preludiometa.BaseType
- func (s SeriesTime) TypeCard() preludiometa.BaseTypeCard
- func (s SeriesTime) UnGroup() Series
- type SeriesTimePartition
- type SortParam
- type StringFormatter
- type StringPool
- type XlsxReader
- func (r *XlsxReader) Read() DataFrame
- func (r *XlsxReader) SetGuessDataTypeLen(guessDataTypeLen int) *XlsxReader
- func (r *XlsxReader) SetHeader(header int) *XlsxReader
- func (r *XlsxReader) SetNullValues(nullValues bool) *XlsxReader
- func (r *XlsxReader) SetPath(path string) *XlsxReader
- func (r *XlsxReader) SetRows(rows int) *XlsxReader
- func (r *XlsxReader) SetSchema(schema *preludiometa.Schema) *XlsxReader
- func (r *XlsxReader) SetSheet(sheet string) *XlsxReader
- type XlsxWriter
- func (w *XlsxWriter) SetDataFrame(dataframe DataFrame) *XlsxWriter
- func (w *XlsxWriter) SetNaText(naText string) *XlsxWriter
- func (w *XlsxWriter) SetPath(path string) *XlsxWriter
- func (w *XlsxWriter) SetSheet(sheet string) *XlsxWriter
- func (w *XlsxWriter) SetWriter(writer io.Writer) *XlsxWriter
- func (w *XlsxWriter) Write() DataFrame
- type XptReader
- func (r *XptReader) Read() DataFrame
- func (r *XptReader) SetByteOrder(byteOrder binary.ByteOrder) *XptReader
- func (r *XptReader) SetMaxObservations(maxObservations int) *XptReader
- func (r *XptReader) SetPath(path string) *XptReader
- func (r *XptReader) SetReader(reader io.Reader) *XptReader
- func (r *XptReader) SetVersion(version XptVersionType) *XptReader
- type XptVersionType
- type XptWriter
- func (w *XptWriter) SetByteOrder(byteOrder binary.ByteOrder) *XptWriter
- func (w *XptWriter) SetDataFrame(dataframe DataFrame) *XptWriter
- func (w *XptWriter) SetPath(path string) *XptWriter
- func (w *XptWriter) SetVersion(version XptVersionType) *XptWriter
- func (w *XptWriter) SetWriter(writer io.Writer) *XptWriter
- func (w *XptWriter) Write() DataFrame
Constants ¶
const ( // The default capacity of a series. DEFAULT_SERIES_INITIAL_CAPACITY = 10 // The default capacity of a hash map. DEFAULT_HASH_MAP_INITIAL_CAPACITY = 1024 // The default capacity of a dense map array. DEFAULT_DENSE_MAP_ARRAY_INITIAL_CAPACITY = 64 // Number of threads to use for parallel operations. THREADS_NUMBER = 16 // Minimum number of elements to use parallel operations. MINIMUM_PARALLEL_SIZE_1 = 16_384 MINIMUM_PARALLEL_SIZE_2 = 131_072 HASH_MAGIC_NUMBER = int64(0xa8f4979b77e3f93) HASH_MAGIC_NUMBER_NULL = int64(0x7fff4979b77e3f93) HASH_NULL_KEY = int64(0x7ff8000000000001) INF_TEXT = "Inf" NA_TEXT = "Na" BOOL_TRUE_TEXT = "true" BOOL_FALSE_TEXT = "false" CSV_READER_DEFAULT_DELIMITER = ',' CSV_READER_DEFAULT_HEADER = true CSV_READER_DEFAULT_GUESS_DATA_TYPE_LEN = 1000 XLSX_READER_DEFAULT_GUESS_DATA_TYPE_LEN = 1000 )
const DEFAULT_COUNT_NAME = "n"
Variables ¶
var SpecialMissingValueRegex = regexp.MustCompile("^[A-Z_]\x00\x00\x00\x00\x00\x00\x00$")
Functions ¶
func IsIbmSpecialMissingValue ¶
Check if float is a SpecialMissingValue from an XPORT-format bytestring.
func NewNamestrV56 ¶
func NewNamestrV56() *__NAMESTRv56
func NewNamestrV89 ¶
func NewNamestrV89() *__NAMESTRv89
Types ¶
type AggregateType ¶
type AggregateType int8
const ( AGGREGATE_COUNT AggregateType = iota AGGREGATE_SUM AGGREGATE_MEAN AGGREGATE_MEDIAN AGGREGATE_MIN AGGREGATE_MAX AGGREGATE_STD )
type BaseDataFrame ¶
type BaseDataFrame struct {
// contains filtered or unexported fields
}
func (BaseDataFrame) AddSeries ¶
func (df BaseDataFrame) AddSeries(name string, series Series) DataFrame
func (BaseDataFrame) AddSeriesFromBools ¶
func (BaseDataFrame) AddSeriesFromDurations ¶
func (BaseDataFrame) AddSeriesFromFloat64s ¶
func (BaseDataFrame) AddSeriesFromInt64s ¶
func (BaseDataFrame) AddSeriesFromInts ¶
func (BaseDataFrame) AddSeriesFromStrings ¶
func (BaseDataFrame) AddSeriesFromTimes ¶
func (BaseDataFrame) Agg ¶
func (df BaseDataFrame) Agg(aggregators ...aggregator) aggregatorBuilder
func (BaseDataFrame) At ¶
func (df BaseDataFrame) At(index int) Series
Returns the series at the given index.
func (BaseDataFrame) C ¶
func (df BaseDataFrame) C(name string) Series
Returns the column with the given name.
func (BaseDataFrame) Describe ¶
func (df BaseDataFrame) Describe() string
func (BaseDataFrame) Filter ¶
func (df BaseDataFrame) Filter(mask any) DataFrame
func (BaseDataFrame) FromCsv ¶
func (df BaseDataFrame) FromCsv() *CsvReader
func (BaseDataFrame) FromJson ¶
func (df BaseDataFrame) FromJson() *JsonReader
func (BaseDataFrame) FromXlsx ¶
func (df BaseDataFrame) FromXlsx() *XlsxReader
func (BaseDataFrame) FromXpt ¶
func (df BaseDataFrame) FromXpt() *XptReader
func (BaseDataFrame) GetContext ¶
func (df BaseDataFrame) GetContext() *Context
GetContext returns the context of the dataframe.
func (BaseDataFrame) GetError ¶
func (df BaseDataFrame) GetError() error
func (BaseDataFrame) GetSeriesIndex ¶
func (df BaseDataFrame) GetSeriesIndex(name string) int
func (BaseDataFrame) GroupBy ¶
func (df BaseDataFrame) GroupBy(by ...string) DataFrame
func (BaseDataFrame) IsErrored ¶
func (df BaseDataFrame) IsErrored() bool
func (BaseDataFrame) IsGrouped ¶
func (df BaseDataFrame) IsGrouped() bool
func (BaseDataFrame) Join ¶
func (df BaseDataFrame) Join(how DataFrameJoinType, other DataFrame, on ...string) DataFrame
func (BaseDataFrame) Len ¶
func (df BaseDataFrame) Len() int
func (BaseDataFrame) Less ¶
func (df BaseDataFrame) Less(i, j int) bool
func (BaseDataFrame) NCols ¶
func (df BaseDataFrame) NCols() int
NCols returns the number of columns in the dataframe.
func (BaseDataFrame) NRows ¶
func (df BaseDataFrame) NRows() int
NRows returns the number of rows in the dataframe.
func (BaseDataFrame) NameAt ¶
func (df BaseDataFrame) NameAt(index int) string
Returns the series with the given name as a bool series.
func (BaseDataFrame) Names ¶
func (df BaseDataFrame) Names() []string
Names returns the names of the series in the dataframe.
func (BaseDataFrame) OrderBy ¶
func (df BaseDataFrame) OrderBy(params ...SortParam) DataFrame
func (BaseDataFrame) PPrint ¶
func (df BaseDataFrame) PPrint(params PPrintParams) DataFrame
Pretty print the dataframe.
func (BaseDataFrame) Records ¶
func (df BaseDataFrame) Records(header bool) [][]string
func (BaseDataFrame) Select ¶
func (df BaseDataFrame) Select(selectors ...string) DataFrame
func (BaseDataFrame) SelectAt ¶
func (df BaseDataFrame) SelectAt(indices ...int) DataFrame
func (BaseDataFrame) Swap ¶
func (df BaseDataFrame) Swap(i, j int)
func (BaseDataFrame) Take ¶
func (df BaseDataFrame) Take(params ...int) DataFrame
func (BaseDataFrame) ToCsv ¶
func (df BaseDataFrame) ToCsv() *CsvWriter
func (BaseDataFrame) ToHtml ¶
func (df BaseDataFrame) ToHtml() *HtmlWriter
func (BaseDataFrame) ToJson ¶
func (df BaseDataFrame) ToJson() *JsonWriter
func (BaseDataFrame) ToMarkDown ¶
func (df BaseDataFrame) ToMarkDown() *MarkDownWriter
func (BaseDataFrame) ToXlsx ¶
func (df BaseDataFrame) ToXlsx() *XlsxWriter
func (BaseDataFrame) ToXpt ¶
func (df BaseDataFrame) ToXpt() *XptWriter
func (BaseDataFrame) Types ¶
func (df BaseDataFrame) Types() []preludiometa.BaseType
Types returns the types of the series in the dataframe.
func (BaseDataFrame) Ungroup ¶
func (df BaseDataFrame) Ungroup() DataFrame
type BaseDataFramePartitionEntry ¶
type BaseDataFramePartitionEntry struct {
// contains filtered or unexported fields
}
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() *Context
func (*Context) GetThreadsNumber ¶
func (*Context) GetTimeFormat ¶
func (*Context) SetThreadsNumber ¶
func (*Context) SetTimeFormat ¶
type CsvReader ¶
type CsvReader struct {
// contains filtered or unexported fields
}
func NewCsvReader ¶
func (*CsvReader) SetContext ¶
func (*CsvReader) SetDelimiter ¶
func (*CsvReader) SetGuessDataTypeLen ¶
func (*CsvReader) SetNullValues ¶
type CsvWriter ¶
type CsvWriter struct {
// contains filtered or unexported fields
}
func NewCsvWriter ¶
func NewCsvWriter() *CsvWriter
func (*CsvWriter) SetDataFrame ¶
func (*CsvWriter) SetDelimiter ¶
type DataFrame ¶
type DataFrame interface { // GetContext returns the context of the dataframe. GetContext() *Context // Names returns the names of the series in the dataframe. Names() []string // Types returns the types of the series in the dataframe. Types() []preludiometa.BaseType // NCols returns the number of columns in the dataframe. NCols() int // NRows returns the number of rows in the dataframe. NRows() int IsErrored() bool IsGrouped() bool GetError() error GetSeriesIndex(name string) int // AddSeries adds a generic series to the dataframe. AddSeries(name string, series Series) DataFrame // AddSeriesFromBools adds a series of bools to the dataframe. AddSeriesFromBools(name string, data []bool, nullMask []bool, makeCopy bool) DataFrame // AddSeriesFromInt32s adds a series of ints to the dataframe. AddSeriesFromInts(name string, data []int, nullMask []bool, makeCopy bool) DataFrame // AddSeriesFromInt64s adds a series of ints to the dataframe. AddSeriesFromInt64s(name string, data []int64, nullMask []bool, makeCopy bool) DataFrame // AddSeriesFromFloat64s adds a series of floats to the dataframe. AddSeriesFromFloat64s(name string, data []float64, nullMask []bool, makeCopy bool) DataFrame // AddSeriesFromStrings adds a series of strings to the dataframe. AddSeriesFromStrings(name string, data []string, nullMask []bool, makeCopy bool) DataFrame // AddSeriesFromTimes adds a series of times to the dataframe. AddSeriesFromTimes(name string, data []time.Time, nullMask []bool, makeCopy bool) DataFrame // AddSeriesFromDurations adds a series of durations to the dataframe. AddSeriesFromDurations(name string, data []time.Duration, nullMask []bool, makeCopy bool) DataFrame // Replace the series with the given name. Replace(name string, s Series) DataFrame // Returns the column with the given name. C(name string) Series // Returns the series at the given index. At(index int) Series // Returns the series with the given name as a bool series. NameAt(index int) string Select(selectors ...string) DataFrame SelectAt(indices ...int) DataFrame Filter(mask any) DataFrame GroupBy(by ...string) DataFrame Ungroup() DataFrame Join(how DataFrameJoinType, other DataFrame, on ...string) DataFrame Take(params ...int) DataFrame Agg(aggregators ...aggregator) aggregatorBuilder // Sort the dataframe. Len() int Less(i, j int) bool Swap(i, j int) OrderBy(params ...SortParam) DataFrame Describe() string Records(header bool) [][]string // Pretty print the dataframe. PPrint(params PPrintParams) DataFrame FromCsv() *CsvReader ToCsv() *CsvWriter FromJson() *JsonReader ToJson() *JsonWriter FromXpt() *XptReader ToXpt() *XptWriter FromXlsx() *XlsxReader ToXlsx() *XlsxWriter ToHtml() *HtmlWriter ToMarkDown() *MarkDownWriter // contains filtered or unexported methods }
func NewBaseDataFrame ¶
type DataFrameJoinType ¶
type DataFrameJoinType int8
const ( INNER_JOIN DataFrameJoinType = iota LEFT_JOIN RIGHT_JOIN OUTER_JOIN )
type HtmlWriter ¶
type HtmlWriter struct {
// contains filtered or unexported fields
}
func NewHtmlWriter ¶
func NewHtmlWriter() *HtmlWriter
func (*HtmlWriter) SetDataFrame ¶
func (w *HtmlWriter) SetDataFrame(dataframe DataFrame) *HtmlWriter
func (*HtmlWriter) SetDatatables ¶
func (w *HtmlWriter) SetDatatables(datatables bool) *HtmlWriter
func (*HtmlWriter) SetIndent ¶
func (w *HtmlWriter) SetIndent(indent string) *HtmlWriter
func (*HtmlWriter) SetNaText ¶
func (w *HtmlWriter) SetNaText(naText string) *HtmlWriter
func (*HtmlWriter) SetNewLine ¶
func (w *HtmlWriter) SetNewLine(newLine string) *HtmlWriter
func (*HtmlWriter) SetPath ¶
func (w *HtmlWriter) SetPath(path string) *HtmlWriter
func (*HtmlWriter) SetWriter ¶
func (w *HtmlWriter) SetWriter(writer io.Writer) *HtmlWriter
func (*HtmlWriter) Write ¶
func (w *HtmlWriter) Write() DataFrame
type JsonReader ¶
type JsonReader struct {
// contains filtered or unexported fields
}
func NewJsonReader ¶
func NewJsonReader(ctx *Context) *JsonReader
func (*JsonReader) Read ¶
func (r *JsonReader) Read() DataFrame
func (*JsonReader) SetPath ¶
func (r *JsonReader) SetPath(path string) *JsonReader
func (*JsonReader) SetReader ¶
func (r *JsonReader) SetReader(reader io.Reader) *JsonReader
func (*JsonReader) SetSchema ¶
func (r *JsonReader) SetSchema(schema *preludiometa.Schema) *JsonReader
type JsonWriter ¶
type JsonWriter struct {
// contains filtered or unexported fields
}
func NewJsonWriter ¶
func NewJsonWriter() *JsonWriter
func (*JsonWriter) SetDataFrame ¶
func (w *JsonWriter) SetDataFrame(dataframe DataFrame) *JsonWriter
func (*JsonWriter) SetIndent ¶
func (w *JsonWriter) SetIndent(indent string) *JsonWriter
func (*JsonWriter) SetNewLine ¶
func (w *JsonWriter) SetNewLine(newLine string) *JsonWriter
func (*JsonWriter) SetPath ¶
func (w *JsonWriter) SetPath(path string) *JsonWriter
func (*JsonWriter) SetWriter ¶
func (w *JsonWriter) SetWriter(writer io.Writer) *JsonWriter
func (*JsonWriter) Write ¶
func (w *JsonWriter) Write() DataFrame
type MapFuncNull ¶
type MarkDownWriter ¶
type MarkDownWriter struct {
// contains filtered or unexported fields
}
func NewMarkDownWriter ¶
func NewMarkDownWriter() *MarkDownWriter
func (*MarkDownWriter) SetDataFrame ¶
func (w *MarkDownWriter) SetDataFrame(dataframe DataFrame) *MarkDownWriter
func (*MarkDownWriter) SetHeader ¶
func (w *MarkDownWriter) SetHeader(header bool) *MarkDownWriter
func (*MarkDownWriter) SetIndex ¶
func (w *MarkDownWriter) SetIndex(index bool) *MarkDownWriter
func (*MarkDownWriter) SetNaText ¶
func (w *MarkDownWriter) SetNaText(naText string) *MarkDownWriter
func (*MarkDownWriter) SetPath ¶
func (w *MarkDownWriter) SetPath(path string) *MarkDownWriter
func (*MarkDownWriter) SetWriter ¶
func (w *MarkDownWriter) SetWriter(writer io.Writer) *MarkDownWriter
func (*MarkDownWriter) Write ¶
func (w *MarkDownWriter) Write() DataFrame
type NullableBool ¶
type NullableDuration ¶
type NullableFloat32 ¶
type NullableFloat64 ¶
type NullableInt ¶
type NullableInt16 ¶
type NullableInt32 ¶
type NullableInt64 ¶
type NullableInt8 ¶
type NullableString ¶
type NullableTime ¶
type NumericFormatter ¶
type NumericFormatter struct {
// contains filtered or unexported fields
}
func NewNumericFormatter ¶
func NewNumericFormatter() *NumericFormatter
func (*NumericFormatter) Compute ¶
func (f *NumericFormatter) Compute()
func (*NumericFormatter) Format ¶
func (f *NumericFormatter) Format(width int, val any, isNa bool) string
func (*NumericFormatter) GetMaxWidth ¶
func (f *NumericFormatter) GetMaxWidth() int
func (*NumericFormatter) Push ¶
func (f *NumericFormatter) Push(val any)
func (*NumericFormatter) SetDecimalDigits ¶
func (f *NumericFormatter) SetDecimalDigits(decimalDigits int) *NumericFormatter
func (*NumericFormatter) SetInfText ¶
func (f *NumericFormatter) SetInfText(infText string) *NumericFormatter
func (*NumericFormatter) SetJustifyLeft ¶
func (f *NumericFormatter) SetJustifyLeft(justifyLeft bool) *NumericFormatter
func (*NumericFormatter) SetMaxDigits ¶
func (f *NumericFormatter) SetMaxDigits(maxDigits int) *NumericFormatter
func (*NumericFormatter) SetMovingDigits ¶
func (f *NumericFormatter) SetMovingDigits(movingDigits int) *NumericFormatter
func (*NumericFormatter) SetNaText ¶
func (f *NumericFormatter) SetNaText(naText string) *NumericFormatter
func (*NumericFormatter) SetScientificThreshold ¶
func (f *NumericFormatter) SetScientificThreshold(scientificThreshold int) *NumericFormatter
func (*NumericFormatter) SetThreshold ¶
func (f *NumericFormatter) SetThreshold(threshold int) *NumericFormatter
func (*NumericFormatter) SetTruncateOutput ¶
func (f *NumericFormatter) SetTruncateOutput(truncateOutput bool) *NumericFormatter
func (*NumericFormatter) SetUseLipGloss ¶
func (f *NumericFormatter) SetUseLipGloss(useLipGloss bool) *NumericFormatter
type PPrintParams ¶
type PPrintParams struct {
// contains filtered or unexported fields
}
func NewPPrintParams ¶
func NewPPrintParams() PPrintParams
func (PPrintParams) SetIndent ¶
func (ppp PPrintParams) SetIndent(s string) PPrintParams
func (PPrintParams) SetIndex ¶
func (ppp PPrintParams) SetIndex(b bool) PPrintParams
func (PPrintParams) SetMaxColWidth ¶
func (ppp PPrintParams) SetMaxColWidth(n int) PPrintParams
func (PPrintParams) SetMinColWidth ¶
func (ppp PPrintParams) SetMinColWidth(n int) PPrintParams
func (PPrintParams) SetNRows ¶
func (ppp PPrintParams) SetNRows(n int) PPrintParams
func (PPrintParams) SetTailLen ¶
func (ppp PPrintParams) SetTailLen(n int) PPrintParams
func (PPrintParams) SetUseLipGloss ¶
func (ppp PPrintParams) SetUseLipGloss(b bool) PPrintParams
func (PPrintParams) SetWidth ¶
func (ppp PPrintParams) SetWidth(n int) PPrintParams
type RowDataProvider ¶
type SasFloat ¶
type SasFloat []byte
SAS float numbers.
SAS supports 27 special missing values, allowing the categorization of missing data by tagging or labeling missing values using the letters A to Z or an underscore.
func NewSasFloat ¶
type Series ¶
type Series interface { // Return the context of the series. GetContext() *Context // Return the number of elements in the series. Len() int // Return the type of the series. Type() preludiometa.BaseType // Return the type and cardinality of the series. TypeCard() preludiometa.BaseTypeCard // Return if the series is grouped. IsGrouped() bool // Return if the series admits null values. IsNullable() bool // Return if the series is sorted. IsSorted() SeriesSortOrder // Return if the series is error. IsError() bool // Return the error message of the series. GetError() string // Return if the series has null values. HasNull() bool // Return the number of null values in the series. NullCount() int // Return if the element at index i is null. IsNull(i int) bool // Return the null mask of the series. GetNullMask() []bool // Set the null mask of the series. SetNullMask(mask []bool) Series // Make the series nullable. MakeNullable() Series // Make the series non-nullable. MakeNonNullable() Series // Get the element at index i. Get(i int) any // Get the element at index i as a string. GetAsString(i int) string // Set the element at index i. Set(i int, v any) Series // Take the elements according to the given interval. Take(params ...int) Series // Append elements to the series. // Value can be a single value, slice of values, // a nullable value, a slice of nullable values or a series. Append(v any) Series // Return the actual data of the series. Data() any // Return the nullable data of the series. DataAsNullable() any // Return the data of the series as a slice of strings. DataAsString() []string // Cast the series to a given type. Cast(t preludiometa.BaseType) Series // Copie the series. Copy() Series // Filter out the elements by the given mask. // Mask can be a bool series, a slice of bools or a slice of ints. Filter(mask any) Series // Apply the given function to each element of the series. Map(f MapFunc) Series MapNull(f MapFuncNull) Series GroupBy(gp SeriesPartition) Series UnGroup() Series // Get the partition of the series. GetPartition() SeriesPartition // Sort Interface. Less(i, j int) bool Swap(i, j int) // Sort the elements of the series. Sort() Series SortRev() Series // Boolean operations. And(other any) Series Or(other any) Series // Arithmetic operations. Mul(other any) Series Div(other any) Series Mod(other any) Series Exp(other any) Series Add(other any) Series Sub(other any) Series // Logical operations. Eq(other any) Series Ne(other any) Series Gt(other any) Series Ge(other any) Series Lt(other any) Series Le(other any) Series // contains filtered or unexported methods }
type SeriesBool ¶
type SeriesBool struct {
// contains filtered or unexported fields
}
SeriesBool represents a series of bools. The data is stored as a byte array, with each bit representing a bool.
func NewSeriesBool ¶
func NewSeriesBool(data []bool, nullMask []bool, makeCopy bool, ctx *Context) SeriesBool
Build a Bool Series, if nullMask is nil then the series is not nullable
func (SeriesBool) Add ¶
func (s SeriesBool) Add(other any) Series
func (SeriesBool) All ¶
func (s SeriesBool) All() bool
func (SeriesBool) And ¶
func (s SeriesBool) And(other any) Series
func (SeriesBool) Any ¶
func (s SeriesBool) Any() bool
func (SeriesBool) Append ¶
func (s SeriesBool) Append(v any) Series
Append appends a value or a slice of values to the series.
func (SeriesBool) Bools ¶
func (s SeriesBool) Bools() []bool
Return the underlying data as a slice of bools.
func (SeriesBool) Cast ¶
func (s SeriesBool) Cast(t preludiometa.BaseType) Series
Cast the series to a given type.
func (SeriesBool) Data ¶
func (s SeriesBool) Data() any
Return the elements of the series as a slice.
func (SeriesBool) DataAsNullable ¶
func (s SeriesBool) DataAsNullable() any
Return the underlying data as a slice of NullableBool.
func (SeriesBool) DataAsString ¶
func (s SeriesBool) DataAsString() []string
Return the data as a slice of strings.
func (SeriesBool) Div ¶
func (s SeriesBool) Div(other any) Series
func (SeriesBool) Eq ¶
func (s SeriesBool) Eq(other any) Series
func (SeriesBool) Exp ¶
func (s SeriesBool) Exp(other any) Series
func (SeriesBool) Filter ¶
func (s SeriesBool) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesBool) Ge ¶
func (s SeriesBool) Ge(other any) Series
func (SeriesBool) GetAsString ¶
func (s SeriesBool) GetAsString(i int) string
Get the element at index i as a string.
func (SeriesBool) GetContext ¶
func (s SeriesBool) GetContext() *Context
Return the context of the series.
func (SeriesBool) GetError ¶
func (s SeriesBool) GetError() string
Return the error message of the series.
func (SeriesBool) GetNullMask ¶
func (s SeriesBool) GetNullMask() []bool
Return the null mask of the series.
func (SeriesBool) GetPartition ¶
func (s SeriesBool) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesBool) GroupBy ¶
func (s SeriesBool) GroupBy(partition SeriesPartition) Series
func (SeriesBool) Gt ¶
func (s SeriesBool) Gt(other any) Series
func (SeriesBool) HasNull ¶
func (s SeriesBool) HasNull() bool
Return if the series has null values.
func (SeriesBool) IsNull ¶
func (s SeriesBool) IsNull(i int) bool
Return if the element at index i is null.
func (SeriesBool) IsNullable ¶
func (s SeriesBool) IsNullable() bool
Return if the series admits null values.
func (SeriesBool) IsSorted ¶
func (s SeriesBool) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesBool) Le ¶
func (s SeriesBool) Le(other any) Series
func (SeriesBool) Less ¶
func (s SeriesBool) Less(i, j int) bool
func (SeriesBool) Lt ¶
func (s SeriesBool) Lt(other any) Series
func (SeriesBool) MakeNonNullable ¶
func (s SeriesBool) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesBool) MakeNullable ¶
func (s SeriesBool) MakeNullable() Series
Make the series nullable.
func (SeriesBool) Map ¶
func (s SeriesBool) Map(f MapFunc) Series
Apply the given function to each element of the series.
func (SeriesBool) MapNull ¶
func (s SeriesBool) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesBool) Mod ¶
func (s SeriesBool) Mod(other any) Series
func (SeriesBool) Mul ¶
func (s SeriesBool) Mul(other any) Series
func (SeriesBool) Ne ¶
func (s SeriesBool) Ne(other any) Series
func (SeriesBool) Not ¶
func (s SeriesBool) Not() Series
Not performs logical NOT operation on series
func (SeriesBool) NullCount ¶
func (s SeriesBool) NullCount() int
Return the number of null values in the series.
func (SeriesBool) Or ¶
func (s SeriesBool) Or(other any) Series
func (SeriesBool) Set ¶
func (s SeriesBool) Set(i int, v any) Series
Set the element at index i. The value must be of type bool or NullableBool.
func (SeriesBool) SetNullMask ¶
func (s SeriesBool) SetNullMask(mask []bool) Series
Set the null mask of the series.
func (SeriesBool) Sort ¶
func (s SeriesBool) Sort() Series
func (SeriesBool) SortRev ¶
func (s SeriesBool) SortRev() Series
func (SeriesBool) Sub ¶
func (s SeriesBool) Sub(other any) Series
func (SeriesBool) Swap ¶
func (s SeriesBool) Swap(i, j int)
func (SeriesBool) Take ¶
func (s SeriesBool) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesBool) Type ¶
func (s SeriesBool) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesBool) TypeCard ¶
func (s SeriesBool) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesBoolPartition ¶
type SeriesBoolPartition struct {
// contains filtered or unexported fields
}
A SeriesBoolPartition is a partition of a SeriesBool. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type SeriesDuration ¶
type SeriesDuration struct {
// contains filtered or unexported fields
}
SeriesDuration represents a duration series.
func NewSeriesDuration ¶
func NewSeriesDuration(data []time.Duration, nullMask []bool, makeCopy bool, ctx *Context) SeriesDuration
Build a Duration Series, if nullMask is nil then the series is not nullable
func (SeriesDuration) Add ¶
func (s SeriesDuration) Add(other any) Series
func (SeriesDuration) And ¶
func (s SeriesDuration) And(other any) Series
func (SeriesDuration) Append ¶
func (s SeriesDuration) Append(v any) Series
Append appends a value or a slice of values to the series.
func (SeriesDuration) Cast ¶
func (s SeriesDuration) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesDuration) Data ¶
func (s SeriesDuration) Data() any
Return the elements of the series as a slice.
func (SeriesDuration) DataAsNullable ¶
func (s SeriesDuration) DataAsNullable() any
Return the underlying data as a slice of NullableDuration.
func (SeriesDuration) DataAsString ¶
func (s SeriesDuration) DataAsString() []string
Return the underlying data as a slice of strings.
func (SeriesDuration) Div ¶
func (s SeriesDuration) Div(other any) Series
func (SeriesDuration) Eq ¶
func (s SeriesDuration) Eq(other any) Series
func (SeriesDuration) Exp ¶
func (s SeriesDuration) Exp(other any) Series
func (SeriesDuration) Filter ¶
func (s SeriesDuration) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesDuration) Ge ¶
func (s SeriesDuration) Ge(other any) Series
func (SeriesDuration) GetAsString ¶
func (s SeriesDuration) GetAsString(i int) string
Get the element at index i as a string.
func (SeriesDuration) GetContext ¶
func (s SeriesDuration) GetContext() *Context
Return the context of the series.
func (SeriesDuration) GetError ¶
func (s SeriesDuration) GetError() string
Return the error message of the series.
func (SeriesDuration) GetNullMask ¶
func (s SeriesDuration) GetNullMask() []bool
Return the null mask of the series.
func (SeriesDuration) GetPartition ¶
func (s SeriesDuration) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesDuration) GroupBy ¶
func (s SeriesDuration) GroupBy(partition SeriesPartition) Series
func (SeriesDuration) Gt ¶
func (s SeriesDuration) Gt(other any) Series
func (SeriesDuration) HasNull ¶
func (s SeriesDuration) HasNull() bool
Return if the series has null values.
func (SeriesDuration) IsError ¶
func (s SeriesDuration) IsError() bool
Return if the series is error.
func (SeriesDuration) IsGrouped ¶
func (s SeriesDuration) IsGrouped() bool
Return if the series is grouped.
func (SeriesDuration) IsNull ¶
func (s SeriesDuration) IsNull(i int) bool
Return if the element at index i is null.
func (SeriesDuration) IsNullable ¶
func (s SeriesDuration) IsNullable() bool
Return if the series admits null values.
func (SeriesDuration) IsSorted ¶
func (s SeriesDuration) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesDuration) Le ¶
func (s SeriesDuration) Le(other any) Series
func (SeriesDuration) Len ¶
func (s SeriesDuration) Len() int
Return the number of elements in the series.
func (SeriesDuration) Less ¶
func (s SeriesDuration) Less(i, j int) bool
func (SeriesDuration) Lt ¶
func (s SeriesDuration) Lt(other any) Series
func (SeriesDuration) MakeNonNullable ¶
func (s SeriesDuration) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesDuration) MakeNullable ¶
func (s SeriesDuration) MakeNullable() Series
Make the series nullable.
func (SeriesDuration) Map ¶
func (s SeriesDuration) Map(f MapFunc) Series
Apply the given function to each element of the series.
func (SeriesDuration) MapNull ¶
func (s SeriesDuration) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesDuration) Mod ¶
func (s SeriesDuration) Mod(other any) Series
func (SeriesDuration) Mul ¶
func (s SeriesDuration) Mul(other any) Series
func (SeriesDuration) Ne ¶
func (s SeriesDuration) Ne(other any) Series
func (SeriesDuration) NullCount ¶
func (s SeriesDuration) NullCount() int
Return the number of null values in the series.
func (SeriesDuration) Or ¶
func (s SeriesDuration) Or(other any) Series
func (SeriesDuration) Set ¶
func (s SeriesDuration) Set(i int, v any) Series
Set the element at index i. The value v must be of type time.Duration or NullableDuration.
func (SeriesDuration) SetNullMask ¶
func (s SeriesDuration) SetNullMask(mask []bool) Series
Set the null mask of the series.
func (SeriesDuration) Sort ¶
func (s SeriesDuration) Sort() Series
func (SeriesDuration) SortRev ¶
func (s SeriesDuration) SortRev() Series
func (SeriesDuration) Sub ¶
func (s SeriesDuration) Sub(other any) Series
func (SeriesDuration) Swap ¶
func (s SeriesDuration) Swap(i, j int)
func (SeriesDuration) Take ¶
func (s SeriesDuration) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesDuration) Times ¶
func (s SeriesDuration) Times() []time.Duration
Return the underlying data as a slice of time.Duration.
func (SeriesDuration) Type ¶
func (s SeriesDuration) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesDuration) TypeCard ¶
func (s SeriesDuration) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesDurationPartition ¶
type SeriesDurationPartition struct {
// contains filtered or unexported fields
}
A SeriesDurationPartition is a partition of a SeriesDuration. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type SeriesError ¶
type SeriesError struct {
// contains filtered or unexported fields
}
Dummy series for error handling.
func (SeriesError) Add ¶
func (s SeriesError) Add(other any) Series
func (SeriesError) And ¶
func (s SeriesError) And(other any) Series
func (SeriesError) Append ¶
func (s SeriesError) Append(v any) Series
Append elements to the series.
func (SeriesError) Cast ¶
func (s SeriesError) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesError) DataAsNullable ¶
func (s SeriesError) DataAsNullable() any
Returns the nullable data of the series.
func (SeriesError) DataAsString ¶
func (s SeriesError) DataAsString() []string
Returns the data of the series as a slice of strings.
func (SeriesError) Div ¶
func (s SeriesError) Div(other any) Series
func (SeriesError) Eq ¶
func (s SeriesError) Eq(other any) Series
func (SeriesError) Exp ¶
func (s SeriesError) Exp(other any) Series
func (SeriesError) Filter ¶
func (s SeriesError) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be a bool series, a slice of bools or a slice of ints.
func (SeriesError) Ge ¶
func (s SeriesError) Ge(other any) Series
func (SeriesError) GetAsString ¶
func (s SeriesError) GetAsString(i int) string
func (SeriesError) GetContext ¶
func (s SeriesError) GetContext() *Context
Return the context of the series.
func (SeriesError) GetError ¶
func (s SeriesError) GetError() string
Returns the error message of the series.
func (SeriesError) GetNullMask ¶
func (s SeriesError) GetNullMask() []bool
Returns the null mask of the series.
func (SeriesError) GetPartition ¶
func (s SeriesError) GetPartition() SeriesPartition
func (SeriesError) GroupBy ¶
func (s SeriesError) GroupBy(gp SeriesPartition) Series
func (SeriesError) Gt ¶
func (s SeriesError) Gt(other any) Series
func (SeriesError) HasNull ¶
func (s SeriesError) HasNull() bool
Returns if the series has null values.
func (SeriesError) IsGrouped ¶
func (s SeriesError) IsGrouped() bool
Returns if the series is grouped.
func (SeriesError) IsNull ¶
func (s SeriesError) IsNull(i int) bool
Returns if the element at index i is null.
func (SeriesError) IsNullable ¶
func (s SeriesError) IsNullable() bool
Returns if the series admits null values.
func (SeriesError) IsSorted ¶
func (s SeriesError) IsSorted() SeriesSortOrder
func (SeriesError) Le ¶
func (s SeriesError) Le(other any) Series
func (SeriesError) Lt ¶
func (s SeriesError) Lt(other any) Series
func (SeriesError) MakeNonNullable ¶
func (s SeriesError) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesError) MakeNullable ¶
func (s SeriesError) MakeNullable() Series
Makes the series nullable.
func (SeriesError) Map ¶
func (s SeriesError) Map(f MapFunc) Series
func (SeriesError) MapNull ¶
func (s SeriesError) MapNull(f MapFuncNull) Series
func (SeriesError) Mod ¶
func (s SeriesError) Mod(other any) Series
func (SeriesError) Mul ¶
func (s SeriesError) Mul(other any) Series
func (SeriesError) Ne ¶
func (s SeriesError) Ne(other any) Series
func (SeriesError) NullCount ¶
func (s SeriesError) NullCount() int
Returns the number of null values in the series.
func (SeriesError) Or ¶
func (s SeriesError) Or(other any) Series
func (SeriesError) SetNullMask ¶
func (s SeriesError) SetNullMask(mask []bool) Series
Sets the null mask of the series.
func (SeriesError) Sort ¶
func (s SeriesError) Sort() Series
func (SeriesError) SortRev ¶
func (s SeriesError) SortRev() Series
func (SeriesError) Sub ¶
func (s SeriesError) Sub(other any) Series
func (SeriesError) Swap ¶
func (s SeriesError) Swap(i, j int)
func (SeriesError) Take ¶
func (s SeriesError) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesError) Type ¶
func (s SeriesError) Type() preludiometa.BaseType
Returns the type of the series.
func (SeriesError) TypeCard ¶
func (s SeriesError) TypeCard() preludiometa.BaseTypeCard
Returns the type and cardinality of the series.
func (SeriesError) UnGroup ¶
func (s SeriesError) UnGroup() Series
type SeriesFloat64 ¶
type SeriesFloat64 struct {
// contains filtered or unexported fields
}
SeriesFloat64 represents a series of floats.
func NewSeriesFloat64 ¶
func NewSeriesFloat64(data []float64, nullMask []bool, makeCopy bool, ctx *Context) SeriesFloat64
Build a Float64 Series, if nullMask is nil then the series is not nullable
func (SeriesFloat64) Add ¶
func (s SeriesFloat64) Add(other any) Series
func (SeriesFloat64) And ¶
func (s SeriesFloat64) And(other any) Series
func (SeriesFloat64) Append ¶
func (s SeriesFloat64) Append(v any) Series
Append appends a value or a slice of values to the series.
func (SeriesFloat64) Cast ¶
func (s SeriesFloat64) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesFloat64) Data ¶
func (s SeriesFloat64) Data() any
Return the elements of the series as a slice.
func (SeriesFloat64) DataAsNullable ¶
func (s SeriesFloat64) DataAsNullable() any
Return the underlying data as a slice of NullableFloat64.
func (SeriesFloat64) DataAsString ¶
func (s SeriesFloat64) DataAsString() []string
Return the underlying data as a slice of strings.
func (SeriesFloat64) Div ¶
func (s SeriesFloat64) Div(other any) Series
func (SeriesFloat64) Eq ¶
func (s SeriesFloat64) Eq(other any) Series
func (SeriesFloat64) Exp ¶
func (s SeriesFloat64) Exp(other any) Series
func (SeriesFloat64) Filter ¶
func (s SeriesFloat64) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesFloat64) Float64s ¶
func (s SeriesFloat64) Float64s() []float64
Return the underlying data as a slice of float64.
func (SeriesFloat64) Ge ¶
func (s SeriesFloat64) Ge(other any) Series
func (SeriesFloat64) GetAsString ¶
func (s SeriesFloat64) GetAsString(i int) string
Get the element at index i as a string.
func (SeriesFloat64) GetContext ¶
func (s SeriesFloat64) GetContext() *Context
Return the context of the series.
func (SeriesFloat64) GetError ¶
func (s SeriesFloat64) GetError() string
Return the error message of the series.
func (SeriesFloat64) GetNullMask ¶
func (s SeriesFloat64) GetNullMask() []bool
Return the null mask of the series.
func (SeriesFloat64) GetPartition ¶
func (s SeriesFloat64) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesFloat64) GroupBy ¶
func (s SeriesFloat64) GroupBy(partition SeriesPartition) Series
func (SeriesFloat64) Gt ¶
func (s SeriesFloat64) Gt(other any) Series
func (SeriesFloat64) HasNull ¶
func (s SeriesFloat64) HasNull() bool
Return if the series has null values.
func (SeriesFloat64) IsGrouped ¶
func (s SeriesFloat64) IsGrouped() bool
Return if the series is grouped.
func (SeriesFloat64) IsNull ¶
func (s SeriesFloat64) IsNull(i int) bool
Return if the element at index i is null.
func (SeriesFloat64) IsNullable ¶
func (s SeriesFloat64) IsNullable() bool
Return if the series admits null values.
func (SeriesFloat64) IsSorted ¶
func (s SeriesFloat64) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesFloat64) Le ¶
func (s SeriesFloat64) Le(other any) Series
func (SeriesFloat64) Len ¶
func (s SeriesFloat64) Len() int
Return the number of elements in the series.
func (SeriesFloat64) Less ¶
func (s SeriesFloat64) Less(i, j int) bool
func (SeriesFloat64) Lt ¶
func (s SeriesFloat64) Lt(other any) Series
func (SeriesFloat64) MakeNonNullable ¶
func (s SeriesFloat64) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesFloat64) MakeNullable ¶
func (s SeriesFloat64) MakeNullable() Series
Make the series nullable.
func (SeriesFloat64) Map ¶
func (s SeriesFloat64) Map(f MapFunc) Series
Apply the given function to each element of the series.
func (SeriesFloat64) MapNull ¶
func (s SeriesFloat64) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesFloat64) Min ¶
func (s SeriesFloat64) Min() any
func (SeriesFloat64) Mod ¶
func (s SeriesFloat64) Mod(other any) Series
func (SeriesFloat64) Mul ¶
func (s SeriesFloat64) Mul(other any) Series
func (SeriesFloat64) Ne ¶
func (s SeriesFloat64) Ne(other any) Series
func (SeriesFloat64) Neg ¶
func (s SeriesFloat64) Neg() Series
func (SeriesFloat64) NullCount ¶
func (s SeriesFloat64) NullCount() int
Return the number of null values in the series.
func (SeriesFloat64) Or ¶
func (s SeriesFloat64) Or(other any) Series
func (SeriesFloat64) Set ¶
func (s SeriesFloat64) Set(i int, v any) Series
Set the element at index i. The value v can be any belonging to types: int8, int16, int, int, int64, float32, float64 and their nullable versions.
func (SeriesFloat64) SetNullMask ¶
func (s SeriesFloat64) SetNullMask(mask []bool) Series
Set the null mask of the series.
func (SeriesFloat64) Sort ¶
func (s SeriesFloat64) Sort() Series
func (SeriesFloat64) SortRev ¶
func (s SeriesFloat64) SortRev() Series
func (SeriesFloat64) Sub ¶
func (s SeriesFloat64) Sub(other any) Series
func (SeriesFloat64) Swap ¶
func (s SeriesFloat64) Swap(i, j int)
func (SeriesFloat64) Take ¶
func (s SeriesFloat64) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesFloat64) Type ¶
func (s SeriesFloat64) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesFloat64) TypeCard ¶
func (s SeriesFloat64) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesFloat64Partition ¶
type SeriesFloat64Partition struct {
// contains filtered or unexported fields
}
A SeriesFloat64Partition is a partition of a SeriesFloat64. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type SeriesInt ¶
type SeriesInt struct {
// contains filtered or unexported fields
}
SeriesInt represents a series of ints.
func NewSeriesInt ¶
Build a Int Series, if nullMask is nil then the series is not nullable
func (SeriesInt) Cast ¶
func (s SeriesInt) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesInt) DataAsNullable ¶
func (s SeriesInt) DataAsNullable() any
Return the underlying data as a slice of NullableInt.
func (SeriesInt) DataAsString ¶
Return the underlying data as a slice of strings.
func (SeriesInt) Filter ¶
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesInt) GetAsString ¶
Get the element at index i as a string.
func (SeriesInt) GetContext ¶
Return the context of the series.
func (SeriesInt) GetNullMask ¶
Return the null mask of the series.
func (SeriesInt) GetPartition ¶
func (s SeriesInt) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesInt) GroupBy ¶
func (s SeriesInt) GroupBy(partition SeriesPartition) Series
func (SeriesInt) IsNullable ¶
Return if the series admits null values.
func (SeriesInt) IsSorted ¶
func (s SeriesInt) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesInt) MakeNonNullable ¶
Make the series non-nullable.
func (SeriesInt) MapNull ¶
func (s SeriesInt) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesInt) Set ¶
Set the element at index i. The value v can be any belonging to types: int8, int16, int, int, int64 and their nullable versions.
func (SeriesInt) SetNullMask ¶
Set the null mask of the series.
func (SeriesInt) Type ¶
func (s SeriesInt) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesInt) TypeCard ¶
func (s SeriesInt) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesInt64 ¶
type SeriesInt64 struct {
// contains filtered or unexported fields
}
SeriesInt64 represents a series of ints.
func NewSeriesInt64 ¶
func NewSeriesInt64(data []int64, nullMask []bool, makeCopy bool, ctx *Context) SeriesInt64
Build a Int64 Series, if nullMask is nil then the series is not nullable
func (SeriesInt64) Add ¶
func (s SeriesInt64) Add(other any) Series
func (SeriesInt64) And ¶
func (s SeriesInt64) And(other any) Series
func (SeriesInt64) Append ¶
func (s SeriesInt64) Append(v any) Series
Append appends a value or a slice of values to the series.
func (SeriesInt64) Cast ¶
func (s SeriesInt64) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesInt64) Data ¶
func (s SeriesInt64) Data() any
Return the elements of the series as a slice.
func (SeriesInt64) DataAsNullable ¶
func (s SeriesInt64) DataAsNullable() any
Return the underlying data as a slice of NullableInt64.
func (SeriesInt64) DataAsString ¶
func (s SeriesInt64) DataAsString() []string
Return the underlying data as a slice of strings.
func (SeriesInt64) Div ¶
func (s SeriesInt64) Div(other any) Series
func (SeriesInt64) Eq ¶
func (s SeriesInt64) Eq(other any) Series
func (SeriesInt64) Exp ¶
func (s SeriesInt64) Exp(other any) Series
func (SeriesInt64) Filter ¶
func (s SeriesInt64) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesInt64) Ge ¶
func (s SeriesInt64) Ge(other any) Series
func (SeriesInt64) GetAsString ¶
func (s SeriesInt64) GetAsString(i int) string
Get the element at index i as a string.
func (SeriesInt64) GetContext ¶
func (s SeriesInt64) GetContext() *Context
Return the context of the series.
func (SeriesInt64) GetError ¶
func (s SeriesInt64) GetError() string
Return the error message of the series.
func (SeriesInt64) GetNullMask ¶
func (s SeriesInt64) GetNullMask() []bool
Return the null mask of the series.
func (SeriesInt64) GetPartition ¶
func (s SeriesInt64) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesInt64) GroupBy ¶
func (s SeriesInt64) GroupBy(partition SeriesPartition) Series
func (SeriesInt64) Gt ¶
func (s SeriesInt64) Gt(other any) Series
func (SeriesInt64) HasNull ¶
func (s SeriesInt64) HasNull() bool
Return if the series has null values.
func (SeriesInt64) Int64s ¶
func (s SeriesInt64) Int64s() []int64
Return the underlying data as a slice of int64.
func (SeriesInt64) IsGrouped ¶
func (s SeriesInt64) IsGrouped() bool
Return if the series is grouped.
func (SeriesInt64) IsNull ¶
func (s SeriesInt64) IsNull(i int) bool
Return if the element at index i is null.
func (SeriesInt64) IsNullable ¶
func (s SeriesInt64) IsNullable() bool
Return if the series admits null values.
func (SeriesInt64) IsSorted ¶
func (s SeriesInt64) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesInt64) Le ¶
func (s SeriesInt64) Le(other any) Series
func (SeriesInt64) Len ¶
func (s SeriesInt64) Len() int
Return the number of elements in the series.
func (SeriesInt64) Less ¶
func (s SeriesInt64) Less(i, j int) bool
func (SeriesInt64) Lt ¶
func (s SeriesInt64) Lt(other any) Series
func (SeriesInt64) MakeNonNullable ¶
func (s SeriesInt64) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesInt64) MakeNullable ¶
func (s SeriesInt64) MakeNullable() Series
Make the series nullable.
func (SeriesInt64) Map ¶
func (s SeriesInt64) Map(f MapFunc) Series
Apply the given function to each element of the series.
func (SeriesInt64) MapNull ¶
func (s SeriesInt64) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesInt64) Mod ¶
func (s SeriesInt64) Mod(other any) Series
func (SeriesInt64) Mul ¶
func (s SeriesInt64) Mul(other any) Series
func (SeriesInt64) Ne ¶
func (s SeriesInt64) Ne(other any) Series
func (SeriesInt64) Neg ¶
func (s SeriesInt64) Neg() Series
func (SeriesInt64) NullCount ¶
func (s SeriesInt64) NullCount() int
Return the number of null values in the series.
func (SeriesInt64) Or ¶
func (s SeriesInt64) Or(other any) Series
func (SeriesInt64) Set ¶
func (s SeriesInt64) Set(i int, v any) Series
Set the element at index i. The value v can be any belonging to types: int8, int16, int, int, int64 and their nullable versions.
func (SeriesInt64) SetNullMask ¶
func (s SeriesInt64) SetNullMask(mask []bool) Series
Set the null mask of the series.
func (SeriesInt64) Sort ¶
func (s SeriesInt64) Sort() Series
func (SeriesInt64) SortRev ¶
func (s SeriesInt64) SortRev() Series
func (SeriesInt64) Sub ¶
func (s SeriesInt64) Sub(other any) Series
func (SeriesInt64) Swap ¶
func (s SeriesInt64) Swap(i, j int)
func (SeriesInt64) Take ¶
func (s SeriesInt64) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesInt64) Type ¶
func (s SeriesInt64) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesInt64) TypeCard ¶
func (s SeriesInt64) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesInt64Partition ¶
type SeriesInt64Partition struct {
// contains filtered or unexported fields
}
A SeriesInt64Partition is a partition of a SeriesInt64. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type SeriesIntPartition ¶
type SeriesIntPartition struct {
// contains filtered or unexported fields
}
A SeriesIntPartition is a partition of a SeriesInt. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type SeriesNA ¶
type SeriesNA struct {
// contains filtered or unexported fields
}
SeriesNA represents a series with no data.
func (SeriesNA) Cast ¶
func (s SeriesNA) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesNA) DataAsNullable ¶
func (s SeriesNA) DataAsNullable() any
Returns the nullable data of the series.
func (SeriesNA) DataAsString ¶
Returns the data of the series as a slice of strings.
func (SeriesNA) Filter ¶
Filters out the elements by the given mask. Mask can be a bool series, a slice of bools or a slice of ints.
func (SeriesNA) GetAsString ¶
func (SeriesNA) GetContext ¶
Return the context of the series.
func (SeriesNA) GetNullMask ¶
Returns the null mask of the series.
func (SeriesNA) GetPartition ¶
func (s SeriesNA) GetPartition() SeriesPartition
func (SeriesNA) GroupBy ¶
func (s SeriesNA) GroupBy(gp SeriesPartition) Series
func (SeriesNA) IsNullable ¶
Returns if the series admits null values.
func (SeriesNA) IsSorted ¶
func (s SeriesNA) IsSorted() SeriesSortOrder
func (SeriesNA) MakeNonNullable ¶
Make the series non-nullable.
func (SeriesNA) MapNull ¶
func (s SeriesNA) MapNull(f MapFuncNull) Series
func (SeriesNA) SetNullMask ¶
Sets the null mask of the series.
func (SeriesNA) Type ¶
func (s SeriesNA) Type() preludiometa.BaseType
Returns the type of the series.
func (SeriesNA) TypeCard ¶
func (s SeriesNA) TypeCard() preludiometa.BaseTypeCard
Returns the type and cardinality of the series.
type SeriesNAPartition ¶
type SeriesNAPartition struct {
// contains filtered or unexported fields
}
type SeriesNumeric ¶
type SeriesNumeric interface { Series // Return the minimum value of the series. Min() any // Return the maximum value of the series. Max() any // Return the sum of the values of the series. Sum() any // Return the mean of the values of the series. Mean() any // Return the median of the values of the series. Median() any // Return the variance of the values of the series. Variance() any // Return the standard deviation of the values of the series. StdDev() any // Return the quantile of the values of the series. Quantile(q any) any }
type SeriesPartition ¶
type SeriesPartition interface {
// contains filtered or unexported methods
}
type SeriesSortOrder ¶
type SeriesSortOrder int16
const ( // The series is not sorted. SORTED_NONE SeriesSortOrder = iota // The series is sorted in ascending order. SORTED_ASC // The series is sorted in descending order. SORTED_DESC )
type SeriesString ¶
type SeriesString struct {
// contains filtered or unexported fields
}
SeriesString represents a series of strings.
func NewSeriesString ¶
func NewSeriesString(data []string, nullMask []bool, makeCopy bool, ctx *Context) SeriesString
Build a String Series, if nullMask is nil then the series is not nullable
func (SeriesString) Add ¶
func (s SeriesString) Add(other any) Series
func (SeriesString) And ¶
func (s SeriesString) And(other any) Series
func (SeriesString) Append ¶
func (s SeriesString) Append(v any) Series
Append appends a value or a slice of values to the series.
func (SeriesString) Cast ¶
func (s SeriesString) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesString) Data ¶
func (s SeriesString) Data() any
Return the elements of the series as a slice.
func (SeriesString) DataAsNullable ¶
func (s SeriesString) DataAsNullable() any
Return the underlying data as a slice of NullableString.
func (SeriesString) DataAsString ¶
func (s SeriesString) DataAsString() []string
Return the underlying data as a slice of string.
func (SeriesString) Div ¶
func (s SeriesString) Div(other any) Series
func (SeriesString) Eq ¶
func (s SeriesString) Eq(other any) Series
func (SeriesString) Exp ¶
func (s SeriesString) Exp(other any) Series
func (SeriesString) Filter ¶
func (s SeriesString) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesString) Ge ¶
func (s SeriesString) Ge(other any) Series
func (SeriesString) GetAsString ¶
func (s SeriesString) GetAsString(i int) string
Get the element at index i as a string.
func (SeriesString) GetContext ¶
func (s SeriesString) GetContext() *Context
Return the context of the series.
func (SeriesString) GetError ¶
func (s SeriesString) GetError() string
Return the error message of the series.
func (SeriesString) GetNullMask ¶
func (s SeriesString) GetNullMask() []bool
Return the null mask of the series.
func (SeriesString) GetPartition ¶
func (s SeriesString) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesString) GroupBy ¶
func (s SeriesString) GroupBy(partition SeriesPartition) Series
func (SeriesString) Gt ¶
func (s SeriesString) Gt(other any) Series
func (SeriesString) HasNull ¶
func (s SeriesString) HasNull() bool
Return if the series has null values.
func (SeriesString) IsGrouped ¶
func (s SeriesString) IsGrouped() bool
Return if the series is grouped.
func (SeriesString) IsNull ¶
func (s SeriesString) IsNull(i int) bool
Return if the element at index i is null.
func (SeriesString) IsNullable ¶
func (s SeriesString) IsNullable() bool
Return if the series admits null values.
func (SeriesString) IsSorted ¶
func (s SeriesString) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesString) Le ¶
func (s SeriesString) Le(other any) Series
func (SeriesString) Len ¶
func (s SeriesString) Len() int
Return the number of elements in the series.
func (SeriesString) Less ¶
func (s SeriesString) Less(i, j int) bool
func (SeriesString) Lt ¶
func (s SeriesString) Lt(other any) Series
func (SeriesString) MakeNonNullable ¶
func (s SeriesString) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesString) MakeNullable ¶
func (s SeriesString) MakeNullable() Series
Make the series nullable.
func (SeriesString) Map ¶
func (s SeriesString) Map(f MapFunc) Series
Apply the given function to each element of the series.
func (SeriesString) MapNull ¶
func (s SeriesString) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesString) Mod ¶
func (s SeriesString) Mod(other any) Series
func (SeriesString) Mul ¶
func (s SeriesString) Mul(other any) Series
func (SeriesString) Ne ¶
func (s SeriesString) Ne(other any) Series
func (SeriesString) NullCount ¶
func (s SeriesString) NullCount() int
Return the number of null values in the series.
func (SeriesString) Or ¶
func (s SeriesString) Or(other any) Series
func (SeriesString) ParseTime ¶
func (s SeriesString) ParseTime(layout string) Series
Parse the series as a time series.
func (SeriesString) Set ¶
func (s SeriesString) Set(i int, v any) Series
Set the element at index i. The value v must be of type string or NullableString.
func (SeriesString) SetNullMask ¶
func (s SeriesString) SetNullMask(mask []bool) Series
Set the null mask of the series.
func (SeriesString) Sort ¶
func (s SeriesString) Sort() Series
func (SeriesString) SortRev ¶
func (s SeriesString) SortRev() Series
func (SeriesString) Strings ¶
func (s SeriesString) Strings() []string
Return the underlying data as a slice of string.
func (SeriesString) Sub ¶
func (s SeriesString) Sub(other any) Series
func (SeriesString) Swap ¶
func (s SeriesString) Swap(i, j int)
func (SeriesString) Take ¶
func (s SeriesString) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesString) ToLower ¶
func (s SeriesString) ToLower() Series
func (SeriesString) ToUpper ¶
func (s SeriesString) ToUpper() Series
func (SeriesString) Trim ¶
func (s SeriesString) Trim(cutset string) Series
func (SeriesString) TrimSpace ¶
func (s SeriesString) TrimSpace() Series
func (SeriesString) Type ¶
func (s SeriesString) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesString) TypeCard ¶
func (s SeriesString) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesStringPartition ¶
type SeriesStringPartition struct {
// contains filtered or unexported fields
}
A SeriesStringPartition is a partition of a SeriesString. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type SeriesTime ¶
type SeriesTime struct {
// contains filtered or unexported fields
}
SeriesTime represents a datetime series.
func NewSeriesTime ¶
Build a Time Series, if nullMask is nil then the series is not nullable
func (SeriesTime) Add ¶
func (s SeriesTime) Add(other any) Series
func (SeriesTime) And ¶
func (s SeriesTime) And(other any) Series
func (SeriesTime) Append ¶
func (s SeriesTime) Append(v any) Series
Append appends a value or a slice of values to the series.
func (SeriesTime) Cast ¶
func (s SeriesTime) Cast(t preludiometa.BaseType) Series
Casts the series to a given type.
func (SeriesTime) Data ¶
func (s SeriesTime) Data() any
Return the elements of the series as a slice.
func (SeriesTime) DataAsNullable ¶
func (s SeriesTime) DataAsNullable() any
Return the underlying data as a slice of NullableTime.
func (SeriesTime) DataAsString ¶
func (s SeriesTime) DataAsString() []string
Return the underlying data as a slice of strings.
func (SeriesTime) Div ¶
func (s SeriesTime) Div(other any) Series
func (SeriesTime) Eq ¶
func (s SeriesTime) Eq(other any) Series
func (SeriesTime) Exp ¶
func (s SeriesTime) Exp(other any) Series
func (SeriesTime) Filter ¶
func (s SeriesTime) Filter(mask any) Series
Filters out the elements by the given mask. Mask can be SeriesBool, SeriesInt, bool slice or a int slice.
func (SeriesTime) Ge ¶
func (s SeriesTime) Ge(other any) Series
func (SeriesTime) GetAsString ¶
func (s SeriesTime) GetAsString(i int) string
Get the element at index i as a string.
func (SeriesTime) GetContext ¶
func (s SeriesTime) GetContext() *Context
Return the context of the series.
func (SeriesTime) GetError ¶
func (s SeriesTime) GetError() string
Return the error message of the series.
func (SeriesTime) GetNullMask ¶
func (s SeriesTime) GetNullMask() []bool
Return the null mask of the series.
func (SeriesTime) GetPartition ¶
func (s SeriesTime) GetPartition() SeriesPartition
Return the partition of the series.
func (SeriesTime) GetTimeFormat ¶
func (s SeriesTime) GetTimeFormat() string
Get the time format of the series.
func (SeriesTime) GroupBy ¶
func (s SeriesTime) GroupBy(partition SeriesPartition) Series
func (SeriesTime) Gt ¶
func (s SeriesTime) Gt(other any) Series
func (SeriesTime) HasNull ¶
func (s SeriesTime) HasNull() bool
Return if the series has null values.
func (SeriesTime) IsNull ¶
func (s SeriesTime) IsNull(i int) bool
Return if the element at index i is null.
func (SeriesTime) IsNullable ¶
func (s SeriesTime) IsNullable() bool
Return if the series admits null values.
func (SeriesTime) IsSorted ¶
func (s SeriesTime) IsSorted() SeriesSortOrder
Return if the series is sorted.
func (SeriesTime) Le ¶
func (s SeriesTime) Le(other any) Series
func (SeriesTime) Less ¶
func (s SeriesTime) Less(i, j int) bool
func (SeriesTime) Lt ¶
func (s SeriesTime) Lt(other any) Series
func (SeriesTime) MakeNonNullable ¶
func (s SeriesTime) MakeNonNullable() Series
Make the series non-nullable.
func (SeriesTime) MakeNullable ¶
func (s SeriesTime) MakeNullable() Series
Make the series nullable.
func (SeriesTime) Map ¶
func (s SeriesTime) Map(f MapFunc) Series
Apply the given function to each element of the series.
func (SeriesTime) MapNull ¶
func (s SeriesTime) MapNull(f MapFuncNull) Series
Apply the given function to each element of the series.
func (SeriesTime) Mod ¶
func (s SeriesTime) Mod(other any) Series
func (SeriesTime) Mul ¶
func (s SeriesTime) Mul(other any) Series
func (SeriesTime) Ne ¶
func (s SeriesTime) Ne(other any) Series
func (SeriesTime) NullCount ¶
func (s SeriesTime) NullCount() int
Return the number of null values in the series.
func (SeriesTime) Or ¶
func (s SeriesTime) Or(other any) Series
func (SeriesTime) Set ¶
func (s SeriesTime) Set(i int, v any) Series
Set the element at index i. The value v must be of type time.Time or NullableTime.
func (SeriesTime) SetNullMask ¶
func (s SeriesTime) SetNullMask(mask []bool) Series
Set the null mask of the series.
func (SeriesTime) SetTimeFormat ¶
func (s SeriesTime) SetTimeFormat(format string) Series
Set the time format of the series.
func (SeriesTime) Sort ¶
func (s SeriesTime) Sort() Series
func (SeriesTime) SortRev ¶
func (s SeriesTime) SortRev() Series
func (SeriesTime) Sub ¶
func (s SeriesTime) Sub(other any) Series
func (SeriesTime) Swap ¶
func (s SeriesTime) Swap(i, j int)
func (SeriesTime) Take ¶
func (s SeriesTime) Take(params ...int) Series
Take the elements according to the given interval.
func (SeriesTime) Times ¶
func (s SeriesTime) Times() []time.Time
Return the underlying data as a slice of time.Time.
func (SeriesTime) Type ¶
func (s SeriesTime) Type() preludiometa.BaseType
Return the type of the series.
func (SeriesTime) TypeCard ¶
func (s SeriesTime) TypeCard() preludiometa.BaseTypeCard
Return the type and cardinality of the series.
type SeriesTimePartition ¶
type SeriesTimePartition struct {
// contains filtered or unexported fields
}
A SeriesTimePartition is a partition of a SeriesTime. Each key is a hash of a bool value, and each value is a slice of indices of the original series that are set to that value.
type StringFormatter ¶
type StringFormatter struct {
// contains filtered or unexported fields
}
func NewStringFormatter ¶
func NewStringFormatter() *StringFormatter
func (*StringFormatter) Compute ¶
func (f *StringFormatter) Compute()
func (*StringFormatter) Format ¶
func (f *StringFormatter) Format(width int, val any, isNa bool) string
func (*StringFormatter) GetMaxWidth ¶
func (f *StringFormatter) GetMaxWidth() int
func (*StringFormatter) Push ¶
func (f *StringFormatter) Push(val any)
func (*StringFormatter) SetUseLipGloss ¶
func (f *StringFormatter) SetUseLipGloss(useLipGloss bool) *StringFormatter
type StringPool ¶
func NewStringPool ¶
func NewStringPool() *StringPool
func (*StringPool) Get ¶
func (sp *StringPool) Get(s string) *string
Get returns the address of the string if it exists in the pool, otherwise nil.
func (*StringPool) Len ¶
func (sp *StringPool) Len() int
func (*StringPool) Put ¶
func (sp *StringPool) Put(s string) *string
Put returns the address of the string if it exists in the pool, otherwise it adds it to the pool and returns its address.
func (*StringPool) PutSync ¶
func (sp *StringPool) PutSync(s string) *string
PutSync returns the address of the string if it exists in the pool, otherwise it adds it to the pool and returns its address. This version is thread-safe.
func (*StringPool) SetNaText ¶
func (sp *StringPool) SetNaText(s string) *StringPool
func (*StringPool) ToString ¶
func (sp *StringPool) ToString() string
type XlsxReader ¶
type XlsxReader struct {
// contains filtered or unexported fields
}
func NewXlsxReader ¶
func NewXlsxReader(ctx *Context) *XlsxReader
func (*XlsxReader) Read ¶
func (r *XlsxReader) Read() DataFrame
func (*XlsxReader) SetGuessDataTypeLen ¶
func (r *XlsxReader) SetGuessDataTypeLen(guessDataTypeLen int) *XlsxReader
func (*XlsxReader) SetHeader ¶
func (r *XlsxReader) SetHeader(header int) *XlsxReader
func (*XlsxReader) SetNullValues ¶
func (r *XlsxReader) SetNullValues(nullValues bool) *XlsxReader
func (*XlsxReader) SetPath ¶
func (r *XlsxReader) SetPath(path string) *XlsxReader
func (*XlsxReader) SetRows ¶
func (r *XlsxReader) SetRows(rows int) *XlsxReader
func (*XlsxReader) SetSchema ¶
func (r *XlsxReader) SetSchema(schema *preludiometa.Schema) *XlsxReader
func (*XlsxReader) SetSheet ¶
func (r *XlsxReader) SetSheet(sheet string) *XlsxReader
type XlsxWriter ¶
type XlsxWriter struct {
// contains filtered or unexported fields
}
func NewXlsxWriter ¶
func NewXlsxWriter() *XlsxWriter
func (*XlsxWriter) SetDataFrame ¶
func (w *XlsxWriter) SetDataFrame(dataframe DataFrame) *XlsxWriter
func (*XlsxWriter) SetNaText ¶
func (w *XlsxWriter) SetNaText(naText string) *XlsxWriter
func (*XlsxWriter) SetPath ¶
func (w *XlsxWriter) SetPath(path string) *XlsxWriter
func (*XlsxWriter) SetSheet ¶
func (w *XlsxWriter) SetSheet(sheet string) *XlsxWriter
func (*XlsxWriter) SetWriter ¶
func (w *XlsxWriter) SetWriter(writer io.Writer) *XlsxWriter
func (*XlsxWriter) Write ¶
func (w *XlsxWriter) Write() DataFrame
type XptReader ¶
type XptReader struct {
// contains filtered or unexported fields
}
func NewXptReader ¶
func (*XptReader) SetByteOrder ¶
func (*XptReader) SetMaxObservations ¶
func (*XptReader) SetVersion ¶
func (r *XptReader) SetVersion(version XptVersionType) *XptReader
type XptVersionType ¶
type XptVersionType uint8
const ( XPT_VERSION_5 XptVersionType = iota + 5 XPT_VERSION_6 XPT_VERSION_8 XptVersionType = iota + 6 XPT_VERSION_9 )
type XptWriter ¶
type XptWriter struct {
// contains filtered or unexported fields
}
func NewXptWriter ¶
func NewXptWriter() *XptWriter
func (*XptWriter) SetByteOrder ¶
func (*XptWriter) SetDataFrame ¶
func (*XptWriter) SetVersion ¶
func (w *XptWriter) SetVersion(version XptVersionType) *XptWriter
Source Files ¶
- aggregator.go
- consts.go
- context.go
- dataframe.go
- dataframe_base.go
- dataframe_utils.go
- formatter.go
- grouping.go
- io_csv.go
- io_html.go
- io_json.go
- io_markdown.go
- io_typeguesser.go
- io_utils.go
- io_xlsx.go
- io_xpt.go
- series.go
- series_bool.go
- series_bool_base.go
- series_bool_ops.go
- series_builders.go
- series_duration.go
- series_duration_base.go
- series_duration_ops.go
- series_error.go
- series_float64.go
- series_float64_base.go
- series_float64_ops.go
- series_helpers.go
- series_int.go
- series_int64.go
- series_int64_base.go
- series_int64_ops.go
- series_int_base.go
- series_int_ops.go
- series_na.go
- series_na_ops.go
- series_string.go
- series_string_base.go
- series_string_ops.go
- series_time.go
- series_time_base.go
- series_time_ops.go
- series_utils.go
- stats.go
- utils.go