io

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCSV

func ReadCSV(reader io.Reader, conf CSVConfig) (map[string]interface{}, []string, error)

func UnmarshalJSON

func UnmarshalJSON(r io.Reader) (map[string]interface{}, error)

UnmarshalJSON transforms JSON containing data records or columns into a map of columns that can be used to create a QFrame.

Types

type CSVConfig

type CSVConfig struct {
	EmptyNull              bool
	IgnoreEmptyLines       bool
	Delimiter              byte
	Types                  map[string]types.DataType
	EnumVals               map[string][]string
	RowCountHint           int
	Headers                []string
	RenameDuplicateColumns bool
	MissingColumnNameAlias string
}

For reading CSV

type JSONColumns

type JSONColumns map[string]json.RawMessage

type JSONRecords

type JSONRecords []map[string]interface{}

type ToCsvConfig added in v0.4.0

type ToCsvConfig struct {
	Header bool
}

For writing CSV

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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