groupby

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: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Columns     []string
	GroupByNull bool
}

Config holds configuration for group by operations on QFrames. It should be considered a private implementation detail and should never be referenced or used directly outside of the QFrame code. To manipulate it use the functions returning ConfigFunc below.

func NewConfig

func NewConfig(configFns []ConfigFunc) Config

NewConfig creates a new Config object. This function should never be called from outside QFrame.

type ConfigFunc

type ConfigFunc func(c *Config)

ConfigFunc is a function that operates on a Config object.

func Columns

func Columns(columns ...string) ConfigFunc

Columns sets the columns by which the data should be grouped. Leaving this configuration option out will group on all columns in the QFrame.

The order of columns does not matter from a functional point of view but it may impact execution time a bit. For optimal performance order columns according to type with the following priority: 1. int 2. float 3. enum/bool 4. string

func Null

func Null(b bool) ConfigFunc

Null configures if Na/nulls should be grouped together or not. Default is false (eg. don't group null/NaN).

Jump to

Keyboard shortcuts

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