timeseries

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvConfig

type CsvConfig struct {
	Comma     rune
	TimeStamp string
	Maps      map[string]func(string) (interface{}, error)
}

func NewCsvConfig

func NewCsvConfig(timestamp string) *CsvConfig

type TimeArray

type TimeArray struct {
	// contains filtered or unexported fields
}

func FromCsv

func FromCsv(in string, config *CsvConfig) (res *TimeArray, err error)

func FromCsvFile

func FromCsvFile(filename string, config *CsvConfig) (res *TimeArray, err error)

func FromData

func FromData(timestamp []interface{}, values map[string][]interface{}) *TimeArray

func (*TimeArray) AsSlice

func (ta *TimeArray) AsSlice(name string) []interface{}

func (*TimeArray) ChangeTimeStamp added in v0.0.4

func (ta *TimeArray) ChangeTimeStamp(oldTs, newTs interface{})

func (*TimeArray) ColNames

func (ta *TimeArray) ColNames() []string

func (*TimeArray) RemoveIndices added in v0.0.4

func (ta *TimeArray) RemoveIndices(indices []int) *TimeArray

func (*TimeArray) Rename

func (ta *TimeArray) Rename(oldName, newName string) bool

func (*TimeArray) TimeStamp

func (ta *TimeArray) TimeStamp() []interface{}

func (*TimeArray) Values

func (ta *TimeArray) Values(colnames ...string) *TimeArray

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址