csvutil

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFrame

type DataFrame struct {
	Headers map[string]int
	Records [][]string
}

DataFrame はヘッダー情報と行データを保持する構造体です。

func OpenCSV

func OpenCSV(filePath string) (*DataFrame, error)

OpenCSV はBOM付きのCSVファイルを開き、ヘッダーとデータを読み込みます。

func (*DataFrame) GetDate

func (df *DataFrame) GetDate(rowIndex int, columnName string) (datatypes.Date, error)

GetDate は指定されたカラムの値を日付型として取得します。

func (*DataFrame) GetDatePtr

func (df *DataFrame) GetDatePtr(rowIndex int, columnName string) (*datatypes.Date, error)

GetDatePtr は指定されたカラムの値をポインタ型の日付として取得します。

func (*DataFrame) GetFloat

func (df *DataFrame) GetFloat(rowIndex int, columnName string) (float64, error)

GetFloat は指定されたカラムの値を浮動小数点数として取得します。

func (*DataFrame) GetFloatPtr

func (df *DataFrame) GetFloatPtr(rowIndex int, columnName string) (*float64, error)

GetFloatPtr は指定されたカラムの値をポインタ型の浮動小数点数として取得します。

func (*DataFrame) GetInt

func (df *DataFrame) GetInt(rowIndex int, columnName string) (int, error)

GetInt は指定されたカラムの値を整数として取得します。

func (*DataFrame) GetIntPtr

func (df *DataFrame) GetIntPtr(rowIndex int, columnName string) (*int, error)

GetIntPtr は指定されたカラムの値をポインタ型の整数として取得します。

func (*DataFrame) GetString

func (df *DataFrame) GetString(rowIndex int, columnName string) (string, error)

GetString は指定されたカラムの値を文字列として取得します。

func (*DataFrame) GetStringPtr

func (df *DataFrame) GetStringPtr(rowIndex int, columnName string) (*string, error)

GetStringPtr は指定されたカラムの値をポインタ型の文字列として取得します。

func (*DataFrame) GetTime

func (df *DataFrame) GetTime(rowIndex int, columnName string) (datatypes.Time, error)

GetTime は指定されたカラムの値を時刻型として取得します。

func (*DataFrame) GetTimePtr

func (df *DataFrame) GetTimePtr(rowIndex int, columnName string) (*datatypes.Time, error)

GetTimePtr は指定されたカラムの値をポインタ型の時刻として取得します。

Jump to

Keyboard shortcuts

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