Interface StructSeries

Struct Functions for Series

interface StructSeries {
    field(name: string): pl.Series;
    fields: string[];
    nth(index: number): pl.Series;
    renameFields(names: string[]): pl.Series;
    toFrame(): pl.DataFrame;
}

Properties

Methods

Properties

fields: string[]

List of fields of the struct

Array of field names

Methods

  • Access a field by index (zero based index)

    Parameters

    • index: number

      index of the field (starts at 0)

    Returns pl.Series

    A new series containing the values of struct's field index

  • Rename the fields of a struct

    Parameters

    • names: string[]

      new names of the fields

    Returns pl.Series

    A new series containing the struct with new field names