Versions in this module Expand all Collapse all v0 v0.8.10 Sep 25, 2020 Changes in this version + func DisableWarnings() + func EnableWarnings() + func EqualDataFrames(a, b *DataFrame) bool + func EqualSeries(a, b *Series) bool + func GetOptionDefaultNullStrings() []string + func JoinOptionHow(how string) func(*joinConfig) + func JoinOptionLeftOn(keys []string) func(*joinConfig) + func JoinOptionRightOn(keys []string) func(*joinConfig) + func MakeMultiLevelLabels(labels []interface{}) ([]interface{}, error) + func PrintOptionMaxCellWidth(n int) + func PrintOptionMaxColumns(n int) + func PrintOptionMaxRows(n int) + func PrintOptionMergeRepeats(set bool) + func PrintOptionWrapLines(set bool) + func SetOptionAddNullString(s string) + func SetOptionAddTimeFormat(format string) + func SetOptionDefaultSeparator(sep string) + func SetOptionEmptyStringAsNull(set bool) + func SetOptionNaNStatus(set bool) + func WriteMockCSV(r *CSVReader, w *CSVWriter, n int) error + type ApplyFn func(slice interface{}, isNull []bool) (equalLengthSlice interface{}) + type Binner struct + AndLess bool + AndMore bool + Labels []string + type CSVReader struct + func NewCSVReader(r io.Reader) *CSVReader + func (r *CSVReader) Read() (*DataFrame, error) + func (r *CSVReader) Records() [][]string + type CSVWriter struct + func NewCSVWriter(w io.Writer) *CSVWriter + func (w *CSVWriter) Write(df *DataFrame) error + type DType int + const Date + const DateTime + const Float64 + const String + const Time + type DataFrame struct + func ConcatSeries(series ...*Series) (*DataFrame, error) + func NewDataFrame(r Reader) (*DataFrame, error) + func (df *DataFrame) Append(other *DataFrame) *DataFrame + func (df *DataFrame) Apply(lambdas map[string]ApplyFn) *DataFrame + func (df *DataFrame) At(row, column int) *Element + func (df *DataFrame) Cast(containerAsType map[string]DType) + func (df *DataFrame) Col(name string) *Series + func (df *DataFrame) Cols(names ...string) *DataFrame + func (df *DataFrame) Copy() *DataFrame + func (df *DataFrame) Count() *Series + func (df *DataFrame) DeduplicateNames() *DataFrame + func (df *DataFrame) DropCol(name string) *DataFrame + func (df *DataFrame) DropLabels(name string) *DataFrame + func (df *DataFrame) DropNull(subset ...string) *DataFrame + func (df *DataFrame) DropRow(index int) *DataFrame + func (df *DataFrame) EqualRecords(got *RecordWriter, want *CSVReader) (bool, *tablediff.Differences, error) + func (df *DataFrame) EqualStructs(got *StructWriter, want StructReader) (eq bool, diff string, err error) + func (df *DataFrame) Err() error + func (df *DataFrame) FillNull(how map[string]NullFiller) *DataFrame + func (df *DataFrame) Filter(filters map[string]FilterFn) *DataFrame + func (df *DataFrame) FilterByValue(filters map[string]interface{}) *DataFrame + func (df *DataFrame) FilterCols(lambda func(string) bool, level int) *DataFrame + func (df *DataFrame) FilterIndex(container string, filterFn FilterFn) []int + func (df *DataFrame) GetLabels() []interface{} + func (df *DataFrame) GroupBy(names ...string) *GroupedDataFrame + func (df *DataFrame) HasCols(colNames ...string) error + func (df *DataFrame) HasLabels(labelNames ...string) error + func (df *DataFrame) HasType(sliceType string) (labelIndex, columnIndex []int) + func (df *DataFrame) Head(n int) *DataFrame + func (df *DataFrame) InPlace() *DataFrameMutator + func (df *DataFrame) IndexOf(name string, columns bool) int + func (df *DataFrame) IsNull(subset ...string) *DataFrame + func (df *DataFrame) Iterator() *DataFrameIterator + func (df *DataFrame) Len() int + func (df *DataFrame) ListColNames() []string + func (df *DataFrame) ListColNamesAtLevel(level int) []string + func (df *DataFrame) ListLabelNames() []string + func (df *DataFrame) Lookup(other *DataFrame, options ...JoinOption) (*DataFrame, error) + func (df *DataFrame) MarshalJSON() ([]byte, error) + func (df *DataFrame) Max() *Series + func (df *DataFrame) Mean() *Series + func (df *DataFrame) Median() *Series + func (df *DataFrame) Merge(other *DataFrame, options ...JoinOption) (*DataFrame, error) + func (df *DataFrame) Min() *Series + func (df *DataFrame) NUnique() *Series + func (df *DataFrame) Name() string + func (df *DataFrame) NameOfCol(n int) string + func (df *DataFrame) NameOfLabel(n int) string + func (df *DataFrame) NumColumns() int + func (df *DataFrame) NumLevels() int + func (df *DataFrame) PivotTable(labels, columns, values, aggFunc string) (*DataFrame, error) + func (df *DataFrame) PromoteToColLevel(name string) *DataFrame + func (df *DataFrame) Range(first, last int) *DataFrame + func (df *DataFrame) Reduce(name string, lambda ReduceFn) (*Series, error) + func (df *DataFrame) Relabel() *DataFrame + func (df *DataFrame) ReorderCols(colNames []string) *DataFrame + func (df *DataFrame) ReorderLabels(levelNames []string) *DataFrame + func (df *DataFrame) Resample(how map[string]Resampler) *DataFrame + func (df *DataFrame) ResetLabels(index ...string) *DataFrame + func (df *DataFrame) Series() *Series + func (df *DataFrame) SetAsLabels(colNames ...string) *DataFrame + func (df *DataFrame) SetColNames(colNames []string) error + func (df *DataFrame) SetLabelNames(levelNames []string) error + func (df *DataFrame) SetName(name string) *DataFrame + func (df *DataFrame) SetNulls(n int, nulls []bool) error + func (df *DataFrame) SetRows(lambda ApplyFn, container string, rows []int) *DataFrame + func (df *DataFrame) Shuffle(seed int64) *DataFrame + func (df *DataFrame) Sort(by ...Sorter) *DataFrame + func (df *DataFrame) StdDev() *Series + func (df *DataFrame) String() string + func (df *DataFrame) Subset(index []int) *DataFrame + func (df *DataFrame) SubsetCols(index []int) *DataFrame + func (df *DataFrame) SubsetLabels(index []int) *DataFrame + func (df *DataFrame) Sum() *Series + func (df *DataFrame) SwapLabels(i, j string) *DataFrame + func (df *DataFrame) Tail(n int) *DataFrame + func (df *DataFrame) Transpose() *DataFrame + func (df *DataFrame) UnmarshalJSON(b []byte) error + func (df *DataFrame) UnpackIDs(excludeLabels bool, receivers ...*string) error + func (df *DataFrame) UnpackIDsByName(receivers map[string]*string) error + func (df *DataFrame) Where(filters map[string]FilterFn, ifTrue, ifFalse interface{}) (*Series, error) + func (df *DataFrame) WithCol(name string, input interface{}) *DataFrame + func (df *DataFrame) WithLabel(name string, input interface{}) *DataFrame + func (df *DataFrame) WriteTo(w Writer) error + type DataFrameIterator struct + func (iter *DataFrameIterator) Next() bool + func (iter *DataFrameIterator) Row() map[string]Element + type DataFrameMutator struct + func (df *DataFrameMutator) Append(other *DataFrame) error + func (df *DataFrameMutator) Apply(lambdas map[string]ApplyFn) error + func (df *DataFrameMutator) DeduplicateNames() + func (df *DataFrameMutator) DropCol(name string) error + func (df *DataFrameMutator) DropLabels(name string) error + func (df *DataFrameMutator) DropNull(subset ...string) error + func (df *DataFrameMutator) DropRow(index int) error + func (df *DataFrameMutator) FillNull(how map[string]NullFiller) error + func (df *DataFrameMutator) Filter(filters map[string]FilterFn) error + func (df *DataFrameMutator) FilterByValue(filters map[string]interface{}) error + func (df *DataFrameMutator) FilterCols(lambda func(string) bool, level int) error + func (df *DataFrameMutator) IsNull(subset ...string) error + func (df *DataFrameMutator) Range(first, last int) error + func (df *DataFrameMutator) Relabel() + func (df *DataFrameMutator) ReorderCols(colNames []string) error + func (df *DataFrameMutator) ReorderLabels(levelNames []string) error + func (df *DataFrameMutator) Resample(how map[string]Resampler) error + func (df *DataFrameMutator) ResetLabels(labelLevels ...string) error + func (df *DataFrameMutator) SetAsLabels(colNames ...string) + func (df *DataFrameMutator) SetRows(lambda ApplyFn, container string, rows []int) error + func (df *DataFrameMutator) Shuffle(seed int64) + func (df *DataFrameMutator) Sort(by ...Sorter) error + func (df *DataFrameMutator) Subset(index []int) error + func (df *DataFrameMutator) SubsetCols(index []int) error + func (df *DataFrameMutator) SubsetLabels(index []int) error + func (df *DataFrameMutator) SwapLabels(i, j string) error + func (df *DataFrameMutator) WithCol(name string, input interface{}) error + func (df *DataFrameMutator) WithLabel(name string, input interface{}) error + type Element struct + IsNull bool + Val interface{} + type FilterFn func(value interface{}) bool + type GroupedDataFrame struct + func (g *GroupedDataFrame) Apply(cols []string, lambda ApplyFn) *GroupedDataFrame + func (g *GroupedDataFrame) Col(colName string) *GroupedSeries + func (g *GroupedDataFrame) Count(colNames ...string) *DataFrame + func (g *GroupedDataFrame) DataFrame() *DataFrame + func (g *GroupedDataFrame) Earliest(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Err() error + func (g *GroupedDataFrame) First(colNames ...string) *DataFrame + func (g *GroupedDataFrame) GetGroup(group string) *DataFrame + func (g *GroupedDataFrame) GetLabels() []interface{} + func (g *GroupedDataFrame) HavingCount(lambda func(int) bool) *GroupedDataFrame + func (g *GroupedDataFrame) Iterator() *GroupedDataFrameIterator + func (g *GroupedDataFrame) Last(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Latest(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Len() int + func (g *GroupedDataFrame) ListGroups() []string + func (g *GroupedDataFrame) Max(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Mean(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Median(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Min(colNames ...string) *DataFrame + func (g *GroupedDataFrame) NUnique(colNames ...string) *DataFrame + func (g *GroupedDataFrame) Nth(index int, colNames ...string) *DataFrame + func (g *GroupedDataFrame) Reduce(name string, cols []string, lambda ReduceFn) *DataFrame + func (g *GroupedDataFrame) StdDev(colNames ...string) *DataFrame + func (g *GroupedDataFrame) String() string + func (g *GroupedDataFrame) Sum(colNames ...string) *DataFrame + type GroupedDataFrameIterator struct + func (g *GroupedDataFrameIterator) DataFrame() *DataFrame + func (g *GroupedDataFrameIterator) Next() bool + type GroupedSeries struct + func (g *GroupedSeries) Align() *GroupedSeries + func (g *GroupedSeries) Apply(lambda ApplyFn) *GroupedSeries + func (g *GroupedSeries) Count() *Series + func (g *GroupedSeries) Earliest() *Series + func (g *GroupedSeries) Err() error + func (g *GroupedSeries) First() *Series + func (g *GroupedSeries) GetGroup(group string) *Series + func (g *GroupedSeries) GetLabels() []interface{} + func (g *GroupedSeries) HavingCount(lambda func(int) bool) *GroupedSeries + func (g *GroupedSeries) Iterator() *GroupedSeriesIterator + func (g *GroupedSeries) Last() *Series + func (g *GroupedSeries) Latest() *Series + func (g *GroupedSeries) Len() int + func (g *GroupedSeries) ListGroups() []string + func (g *GroupedSeries) Max() *Series + func (g *GroupedSeries) Mean() *Series + func (g *GroupedSeries) Median() *Series + func (g *GroupedSeries) Min() *Series + func (g *GroupedSeries) NUnique() *Series + func (g *GroupedSeries) Nth(n int) *Series + func (g *GroupedSeries) Reduce(name string, lambda ReduceFn) *Series + func (g *GroupedSeries) Series() *Series + func (g *GroupedSeries) StdDev() *Series + func (g *GroupedSeries) String() string + func (g *GroupedSeries) Sum() *Series + type GroupedSeriesIterator struct + func (g *GroupedSeriesIterator) Next() bool + func (g *GroupedSeriesIterator) Series() *Series + type InterfaceRecordReader struct + ByColumn bool + HeaderRows int + LabelLevels int + Name string + func NewInterfaceRecordReader(records [][]interface{}) InterfaceRecordReader + func (r InterfaceRecordReader) Read() (*DataFrame, error) + type InterfaceRecordWriter struct + ByColumn bool + IncludeLabels bool + func NewInterfaceRecordWriter() *InterfaceRecordWriter + func (w *InterfaceRecordWriter) Write(df *DataFrame) error + func (w InterfaceRecordWriter) Records() [][]interface{} + type JoinOption func(*joinConfig) + type Matrix interface + At func(i, j int) float64 + Dims func() (r, c int) + T func() Matrix + type MatrixReader struct + func NewMatrixReader(mat Matrix) MatrixReader + func (r MatrixReader) Read() (*DataFrame, error) + type NullFiller struct + FillBackward bool + FillFloat float64 + FillForward bool + FillZero bool + type Reader interface + Read func() (*DataFrame, error) + type RecordReader struct + BlankStringAsNull bool + ByColumn bool + HeaderRows int + InferTypes bool + LabelLevels int + Name string + func NewRecordReader(records [][]string) RecordReader + func (r RecordReader) Read() (*DataFrame, error) + type RecordWriter struct + ByColumn bool + IncludeLabels bool + func NewRecordWriter() *RecordWriter + func (w *RecordWriter) Write(df *DataFrame) error + func (w RecordWriter) Records() [][]string + type ReduceFn func(slice interface{}, isNull []bool) (value interface{}, null bool) + type Resampler struct + ByDay bool + ByDuration time.Duration + ByMonth bool + ByWeek bool + ByYear bool + Location *time.Location + StartOfWeek time.Weekday + type Series struct + func NewSeries(slice interface{}, labels ...interface{}) *Series + func (s *Series) Add(other *Series, ignoreNulls bool) *Series + func (s *Series) Append(other *Series) *Series + func (s *Series) Apply(lambda ApplyFn) *Series + func (s *Series) At(index int) *Element + func (s *Series) Bin(bins []float64, config *Binner) (*Series, error) + func (s *Series) Cast(containerAsType map[string]DType) + func (s *Series) Copy() *Series + func (s *Series) Count() int + func (s *Series) CumSum() *Series + func (s *Series) DataFrame() *DataFrame + func (s *Series) Divide(other *Series, ignoreNulls bool) *Series + func (s *Series) DropLabels(name string) *Series + func (s *Series) DropNull() *Series + func (s *Series) DropRow(index int) *Series + func (s *Series) Earliest() time.Time + func (s *Series) EqualRecords(got *RecordWriter, want *CSVReader) (bool, *tablediff.Differences, error) + func (s *Series) Err() error + func (s *Series) FillNull(how NullFiller) *Series + func (s *Series) Filter(filters map[string]FilterFn) *Series + func (s *Series) FilterByValue(filters map[string]interface{}) *Series + func (s *Series) FilterIndex(container string, filterFn FilterFn) []int + func (s *Series) GetLabels() []interface{} + func (s *Series) GetNulls() []bool + func (s *Series) GetValues() interface{} + func (s *Series) GetValuesAsFloat64() []float64 + func (s *Series) GetValuesAsString() []string + func (s *Series) GetValuesAsTime() []time.Time + func (s *Series) GroupBy(names ...string) *GroupedSeries + func (s *Series) HasLabels(labelNames ...string) error + func (s *Series) Head(n int) *Series + func (s *Series) InPlace() *SeriesMutator + func (s *Series) IndexOfLabel(name string) int + func (s *Series) IsNull() *Series + func (s *Series) Iterator() *SeriesIterator + func (s *Series) Latest() time.Time + func (s *Series) Len() int + func (s *Series) ListLabelNames() []string + func (s *Series) Lookup(other *Series, options ...JoinOption) (*Series, error) + func (s *Series) Max() float64 + func (s *Series) Mean() float64 + func (s *Series) Median() float64 + func (s *Series) Merge(other *Series, options ...JoinOption) (*DataFrame, error) + func (s *Series) Min() float64 + func (s *Series) Multiply(other *Series, ignoreNulls bool) *Series + func (s *Series) NUnique() int + func (s *Series) Name() string + func (s *Series) NameOfLabel(n int) string + func (s *Series) Percentile() *Series + func (s *Series) PercentileBin(bins []float64, config *Binner) (*Series, error) + func (s *Series) Range(first, last int) *Series + func (s *Series) Rank() *Series + func (s *Series) Reduce(lambda ReduceFn) (value interface{}, isNull bool) + func (s *Series) Relabel() *Series + func (s *Series) Resample(by Resampler) *Series + func (s *Series) RollingDuration(d time.Duration) *GroupedSeries + func (s *Series) RollingN(n int) *GroupedSeries + func (s *Series) SetLabelNames(levelNames []string) *Series + func (s *Series) SetName(name string) *Series + func (s *Series) SetRows(lambda ApplyFn, rows []int) *Series + func (s *Series) Shift(n int) *Series + func (s *Series) Shuffle(seed int64) *Series + func (s *Series) Sort(by ...Sorter) *Series + func (s *Series) StdDev() float64 + func (s *Series) String() string + func (s *Series) Subset(index []int) *Series + func (s *Series) SubsetLabels(index []int) *Series + func (s *Series) Subtract(other *Series, ignoreNulls bool) *Series + func (s *Series) Sum() float64 + func (s *Series) SwapLabels(i, j string) *Series + func (s *Series) Tail(n int) *Series + func (s *Series) Type() reflect.Type + func (s *Series) Unique(includeLabels bool) *Series + func (s *Series) ValueCounts() map[string]int + func (s *Series) Where(filters map[string]FilterFn, ifTrue, ifFalse interface{}) (*Series, error) + func (s *Series) WithLabels(name string, input interface{}) *Series + func (s *Series) WithValues(input interface{}) *Series + func (s *Series) WriteTo(w Writer) error + type SeriesIterator struct + func (iter *SeriesIterator) Next() bool + func (iter *SeriesIterator) Row() map[string]Element + type SeriesMutator struct + func (s *SeriesMutator) Append(other *Series) error + func (s *SeriesMutator) Apply(lambda ApplyFn) error + func (s *SeriesMutator) DropLabels(name string) error + func (s *SeriesMutator) DropNull() + func (s *SeriesMutator) DropRow(index int) error + func (s *SeriesMutator) FillNull(how NullFiller) + func (s *SeriesMutator) Filter(filters map[string]FilterFn) error + func (s *SeriesMutator) FilterByValue(filters map[string]interface{}) error + func (s *SeriesMutator) Relabel() + func (s *SeriesMutator) Resample(by Resampler) + func (s *SeriesMutator) SetRows(lambda ApplyFn, rows []int) error + func (s *SeriesMutator) Shift(n int) + func (s *SeriesMutator) Shuffle(seed int64) + func (s *SeriesMutator) Sort(by ...Sorter) error + func (s *SeriesMutator) Subset(index []int) error + func (s *SeriesMutator) SubsetLabels(index []int) error + func (s *SeriesMutator) SwapLabels(i, j string) error + func (s *SeriesMutator) WithLabels(name string, input interface{}) error + func (s *SeriesMutator) WithValues(input interface{}) error + type SliceReader struct + ColNames []string + ColSlices []interface{} + LabelNames []string + LabelSlices []interface{} + Name string + NumColLevels int + func NewSliceReader(columnSlices []interface{}) SliceReader + func (r SliceReader) MustRead() *DataFrame + func (r SliceReader) Read() (*DataFrame, error) + type Sorter struct + DType DType + Descending bool + Name string + type StructReader struct + IsNull [][]bool + LabelLevels int + Name string + func NewStructReader(sliceOfStructs interface{}) StructReader + func (r StructReader) Read() (*DataFrame, error) + type StructTransposer [][]interface + type StructWriter struct + IncludeLabels bool + Strict bool + func NewStructWriter(ptrSliceOfStructs interface{}) *StructWriter + func (w *StructWriter) Write(df *DataFrame) error + func (w StructWriter) IsNull() [][]bool + type Writer interface + Write func(*DataFrame) error