pd

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 5 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 {
	*gpdf.DataFrame
}

DataFrame is a thin wrapper around gpandas.DataFrame providing helpers to convert to/from Insyra's DataTable and expose a pandas-like API mapped to gpandas.

func FromDataTable

func FromDataTable(dt insyra.IDataTable) (*DataFrame, error)

FromDataTable converts an insyra.DataTable into a gpandas DataFrame and wraps it. Types are inferred per-column (int64/float64/bool/string) and fallback to Any when mixed.

func FromGPandasDataFrame

func FromGPandasDataFrame(df *gpdf.DataFrame) (*DataFrame, error)

FromGPandasDataFrame helper to wrap an existing gpandas.DataFrame.

func (*DataFrame) ToDataTable

func (t *DataFrame) ToDataTable() (*insyra.DataTable, error)

ToDataTable converts the wrapped gpandas DataFrame into an insyra.DataTable.

type Series

type Series struct {
	gpdc.Series
}

func FromDataList

func FromDataList(dl insyra.IDataList) (*Series, error)

func FromGPandasSeries

func FromGPandasSeries(gpds gpdc.Series) (*Series, error)

func (*Series) ToDataList

func (s *Series) ToDataList() (*insyra.DataList, error)

ToDataList converts the Series into an `insyra.DataList`, copying values and preserving `nil` entries. Returns an error if the receiver or the underlying gpandas Series is nil.

Jump to

Keyboard shortcuts

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