Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GroupBySingle<T, R>

Type parameters

Hierarchy

  • GroupByBase<T, R>
    • GroupBySingle

Index

Constructors

constructor

Methods

argmax

  • argmax(memoryResource?: MemoryResource): DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>
  • Compute the index of the maximum value in each group

    Parameters

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>

argmin

  • argmin(memoryResource?: MemoryResource): DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>
  • Compute the index of the minimum value in each group

    Parameters

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>

collectList

  • collectList(include_nulls?: boolean, memoryResource?: MemoryResource): DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : List<T[P]> }>
  • Returns a list column of all included elements in the group.

    Parameters

    • include_nulls: boolean = true
    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : List<T[P]> }>

collectSet

  • collectSet(include_nulls?: boolean, nulls_equal?: boolean, nans_equal?: boolean, memoryResource?: MemoryResource): DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : List<T[P]> }>
  • Returns a lists column of all included elements in the group/series. Within each list, the duplicated entries are dropped out such that each entry appears only once.

    Parameters

    • include_nulls: boolean = true
    • nulls_equal: boolean = true
    • nans_equal: boolean = false
    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : List<T[P]> }>

count

  • count(memoryResource?: MemoryResource): DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>
  • Compute the size of each group

    Parameters

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>

getGroups

  • getGroups(memoryResource?: MemoryResource): Groups<Pick<T, R>, Omit<T, R>>
  • Return the Groups for this GroupBy

    Parameters

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns Groups<Pick<T, R>, Omit<T, R>>

max

  • max(memoryResource?: MemoryResource): DataFrame<T>
  • Compute the maximum value in each group

    Parameters

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<T>

mean

  • mean(memoryResource?: MemoryResource): DataFrame<T>

median

  • median(memoryResource?: MemoryResource): DataFrame<T>
  • Compute the median value in each group

    Parameters

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<T>

min

  • min(memoryResource?: MemoryResource): DataFrame<T>

nth

  • nth(n: number, include_nulls?: boolean, memoryResource?: MemoryResource): DataFrame<T>
  • Return the nth value from each group

    Parameters

    • n: number

      the index of the element to return

    • include_nulls: boolean = true
    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<T>

nunique

  • nunique(include_nulls?: boolean, memoryResource?: MemoryResource): DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>
  • Compute the number of unique values in each group

    Parameters

    • include_nulls: boolean = false
    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<{ [ P in string | number | symbol]: P extends R ? T[P] : Int32 }>

quantile

  • quantile(q?: number, interpolation?: "linear" | "lower" | "higher" | "midpoint" | "nearest", memoryResource?: MemoryResource): DataFrame<T>
  • Return values at the given quantile.

    Parameters

    • q: number = 0.5

      the quantile to compute, 0 <= q <= 1

    • interpolation: "linear" | "lower" | "higher" | "midpoint" | "nearest" = 'linear'

      This optional parameter specifies the interpolation method to use, when the desired quantile lies between two data points i and j.

    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<T>

std

  • std(ddof?: number, memoryResource?: MemoryResource): DataFrame<T>
  • Compute the standard deviation for each group

    Parameters

    • ddof: number = 1
    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<T>

sum

  • sum(memoryResource?: MemoryResource): DataFrame<T>

var

  • var(ddof?: number, memoryResource?: MemoryResource): DataFrame<T>
  • Compute the variance for each group

    Parameters

    • ddof: number = 1
    • Optional memoryResource: MemoryResource

      The optional MemoryResource used to allocate the result's device memory.

    Returns DataFrame<T>