csv

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

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

Dumper represents a csv dumper.

func NewDumper

func NewDumper() *Dumper

NewDumper creates a new dumper.

func (*Dumper) Comma

func (a *Dumper) Comma(o rune) *Dumper

Comma sets the comma option.

func (*Dumper) DumpCSV

func (a *Dumper) DumpCSV(frame *dt.Frame, cw *csv.Writer) error

DumpCSV dumps the frame to csv.Writer.

func (*Dumper) DumpFile

func (a *Dumper) DumpFile(frame *dt.Frame, name string) error

DumpFile dumps the frame to file.

func (*Dumper) DumpWriter

func (a *Dumper) DumpWriter(frame *dt.Frame, w io.Writer) error

DumpWriter dumps the frame to io.Writer.

func (*Dumper) Transformer

func (a *Dumper) Transformer(o transform.Transformer) *Dumper

Transformer sets the transformer option.

func (*Dumper) UseCRLF

func (a *Dumper) UseCRLF(o bool) *Dumper

UseCRLF sets the comma option.

type Loader

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

Loader represents a csv loader.

func NewLoader

func NewLoader() *Loader

NewLoader creates a new loader.

func (*Loader) Comma

func (a *Loader) Comma(o rune) *Loader

Comma sets the comma option.

func (*Loader) Comment

func (a *Loader) Comment(o rune) *Loader

Comment sets the comment option.

func (*Loader) Index

func (a *Loader) Index(o bool) *Loader

Index sets the index option.

func (*Loader) LazyQuotes

func (a *Loader) LazyQuotes(o bool) *Loader

LazyQuotes sets the lazy quotes option.

func (*Loader) LoadCSV

func (a *Loader) LoadCSV(cr *csv.Reader) (*dt.Frame, error)

LoadCSV loads a frame from csv.Reader.

func (*Loader) LoadFile

func (a *Loader) LoadFile(name string) (*dt.Frame, error)

LoadFile loads a frame from file.

func (*Loader) LoadReader

func (a *Loader) LoadReader(r io.Reader) (*dt.Frame, error)

LoadReader loads a frame from io.Reader.

func (*Loader) Transformer

func (a *Loader) Transformer(o transform.Transformer) *Loader

Transformer sets the transformer option.

Jump to

Keyboard shortcuts

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