Documentation
¶
Index ¶
- func ParseSQL(sql string) (string, error)
- type CSVSettings
- type DataFrame
- func (df *DataFrame) Append(s series.Series)
- func (df DataFrame) At(i, j int) any
- func (df DataFrame) Column(name string) *series.Series
- func (df DataFrame) Columns() []series.Series
- func (df DataFrame) Copy() DataFrame
- func (df *DataFrame) Drop(name string) series.Series
- func (df DataFrame) Head(n ...int) DataFrame
- func (df DataFrame) Index() series.Series
- func (df DataFrame) Names() []string
- func (df DataFrame) Order(positions ...int) DataFrame
- func (df DataFrame) ResetIndex() DataFrame
- func (df DataFrame) SelectNumericNames() []string
- func (df DataFrame) SelectObjectNames() []string
- func (df DataFrame) SetIndex(s series.Series) DataFrame
- func (df DataFrame) Shape() (int, int)
- func (df DataFrame) Slice(a, b int) DataFrame
- func (df DataFrame) Sort(columns ...string)
- func (df DataFrame) String() string
- func (df DataFrame) Swap(row1, row2 int)
- func (df DataFrame) Tail(n ...int) DataFrame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSVSettings ¶
CSVSettings defines a struct that contains settings for reading a CSV file, allows for optional settings
type DataFrame ¶
type DataFrame struct {
// contains filtered or unexported fields
}
DataFrame is a collection of series.Series with a shared index. It is similar to a table in a relational database, and is implemented similar to a dataframe in R or Python (pandas).
func FromCSV ¶
func FromCSV(path string, settings ...CSVSettings) *DataFrame
FromCSV reads a CSV file and returns a DataFrame
func New ¶
New creates a new DataFrame from a collection of series.Series. It has a shared index which defaults to a range of integers.
func (*DataFrame) Drop ¶
Drop removes the specified column from the DataFrame and returns it as a series.Series.
func (DataFrame) Head ¶
Head returns a slice of the last n elements of the DataFrame. If n is not specified, it defaults to 5.
func (DataFrame) Names ¶
Names returns a collection of the names of the series.Series of the DataFrame.
func (DataFrame) ResetIndex ¶
ResetIndex resets the index of the DataFrame to a range of integers.
func (DataFrame) SelectNumericNames ¶
SelectNumericNames returns a collection of the names of numeric columns of the DataFrame.
func (DataFrame) SelectObjectNames ¶
SelectObjectNames returns a collection of the names of object columns of the DataFrame.