Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataFrame<T>

Type parameters

  • T: object

Hierarchy

Implements

  • Clonable<Chunked<Struct<T>>>
  • Sliceable<Chunked<Struct<T>>>
  • Applicative<Struct<T>, Chunked<Struct<T>>>
  • DataFrame<T>
  • Clonable<Table<T>>
  • Sliceable<Table<T>>
  • Applicative<Struct<T>, Table<T>>

Implemented by

Index

Constructors

constructor

  • new DataFrame(batches: RecordBatch<T>[]): DataFrame
  • new DataFrame(batches: RecordBatch<T>[]): DataFrame
  • new DataFrame(schema: Schema<T>, batches: RecordBatch<T>[]): DataFrame
  • new DataFrame(schema: Schema<T>, batches: RecordBatch<T>[]): DataFrame

Properties

TArray

TArray: T["TArray"]

TType

TType: T["TType"]

TValue

TValue: T["TValue"]

__@isConcatSpreadable

__@isConcatSpreadable: boolean

Accessors

ArrayType

ArrayType:

VectorName

VectorName:

byteLength

byteLength:

chunks

chunks:

data

data:

dictionary

dictionary:

indices

indices:

length

length:

nullCount

nullCount:

numChildren

numChildren:

numCols

numCols:

schema

schema:

stride

stride:

type

type:

typeId

typeId:

Methods

__@iterator

  • __@iterator(): IterableIterator<RowLike<T>>

assign

clone

  • clone(chunks: RecordBatch<T>[], offsets: Uint32Array): Table<T>

concat

  • concat(others: Vector<Struct<T>>[]): Table<T>
  • Parameters

    • Rest others: Vector<Struct<T>>[]

    Returns Table<T>

count

  • count(): number

countBy

filter

  • filter(predicate: Predicate): FilteredDataFrame<T>

get

  • get(index: number): Iterable<[string, null | T[keyof T]["TValue"]]> & object & object & object
  • Parameters

    • index: number

    Returns Iterable<[string, null | T[keyof T]["TValue"]]> & object & object & object

getChildAt

  • getChildAt<R>(index: number): Column<R> | null

getColumn

  • getColumn<R>(name: R): Column<T[R]>

getColumnAt

  • getColumnAt<R>(index: number): Column<R> | null

getColumnIndex

  • getColumnIndex<R>(name: R): number

indexOf

  • indexOf(element: T["TValue"], offset: undefined | number): number
  • Parameters

    • element: T["TValue"]
    • Optional offset: undefined | number

    Returns number

isValid

  • isValid(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

scan

  • scan(next: NextFunc, bind: BindFunc): void

scanReverse

  • scanReverse(next: NextFunc, bind: BindFunc): void

search

  • search(index: number): [number, number] | null
  • search<N>(index: number, then: N): ReturnType<N>
  • Parameters

    • index: number

    Returns [number, number] | null

  • Type parameters

    • N: SearchContinuation<Chunked<Struct<T>>>

    Parameters

    • index: number
    • Optional then: N

    Returns ReturnType<N>

select

  • select<K>(columnNames: K[]): Table<object>

selectAt

  • selectAt<K>(columnIndices: number[]): Table<object>

serialize

  • serialize(encoding?: string, stream?: boolean): any
  • Parameters

    • Default value encoding: string = "binary"
    • Default value stream: boolean = true

    Returns any

set

  • set(index: number, value: T["TValue"] | null): void
  • Parameters

    • index: number
    • value: T["TValue"] | null

    Returns void

slice

  • slice(begin: undefined | number, end: undefined | number): Table<T>
  • Parameters

    • Optional begin: undefined | number
    • Optional end: undefined | number

    Returns Table<T>

toArray

  • toArray(): T["TArray"]

Static concat

  • concat<T>(vectors: (AbstractVector<T> | AbstractVector<T>[])[]): Chunked<T>
  • Type parameters

    Parameters

    • Rest vectors: (AbstractVector<T> | AbstractVector<T>[])[]

    Returns Chunked<T>

Static empty

  • empty<T>(schema?: Schema<T>): Table<T>
  • Type parameters

    • T: object

    Parameters

    • Default value schema: Schema<T> = new Schema<T>([])

    Returns Table<T>

Static flatten

  • flatten<T>(vectors: (AbstractVector<T> | AbstractVector<T>[])[]): AbstractVector<T>[]
  • Type parameters

    Parameters

    • Rest vectors: (AbstractVector<T> | AbstractVector<T>[])[]

    Returns AbstractVector<T>[]

Static from

  • from(): Table<__type>
  • from<T>(source: RecordBatchReader<T>): Table<T>
  • from<T>(source: object): Table<T>
  • from<T>(source: undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | Iterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>): Table<T>
  • from<T>(source: PromiseLike): Promise<Table<T>>
  • from<T>(source: PromiseLike): Promise<Table<T>>
  • from<T>(source: ReadableStream | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>): Promise<Table<T>>
  • from<T>(source: FileHandle | PromiseLike<FileHandle> | PromiseLike<ReadableStream | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>>): Promise<Table<T>>
  • from<T>(source: PromiseLike<RecordBatchReader<T>>): Promise<Table<T>>
  • from<T, TNull>(options: VectorBuilderOptions<Struct<T>, TNull>): Table<T>
  • from<T, TNull>(options: VectorBuilderOptionsAsync<Struct<T>, TNull>): Promise<Table<T>>
  • Returns Table<__type>

  • Type parameters

    • T: object

    Parameters

    Returns Table<T>

  • Type parameters

    • T: object

    Parameters

    • source: object

    Returns Table<T>

  • Type parameters

    • T: object

    Parameters

    • source: undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | Iterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>

    Returns Table<T>

  • Type parameters

    • T: object

    Parameters

    • source: PromiseLike

    Returns Promise<Table<T>>

  • Type parameters

    • T: object

    Parameters

    • source: PromiseLike

    Returns Promise<Table<T>>

  • Type parameters

    • T: object

    Parameters

    • source: ReadableStream | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>

    Returns Promise<Table<T>>

  • Type parameters

    • T: object

    Parameters

    • source: FileHandle | PromiseLike<FileHandle> | PromiseLike<ReadableStream | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>>

    Returns Promise<Table<T>>

  • Type parameters

    • T: object

    Parameters

    Returns Promise<Table<T>>

  • Type parameters

    • T: object

    • TNull

    Parameters

    • options: VectorBuilderOptions<Struct<T>, TNull>

    Returns Table<T>

  • Type parameters

    • T: object

    • TNull

    Parameters

    • options: VectorBuilderOptionsAsync<Struct<T>, TNull>

    Returns Promise<Table<T>>

Static fromAsync

  • fromAsync<T>(source: undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | object | ReadableStream | FileHandle | Iterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | PromiseLike<object> | PromiseLike<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | Iterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>> | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | PromiseLike<FileHandle> | PromiseLike<ReadableStream | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>>): Promise<Table<T>>
  • Type parameters

    • T: object

    Parameters

    • source: undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | object | ReadableStream | FileHandle | Iterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | PromiseLike<object> | PromiseLike<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | Iterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>> | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | PromiseLike<FileHandle> | PromiseLike<ReadableStream | Response | ReadableStream<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>> | AsyncIterable<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer | IteratorResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer> | ReadableStreamReadResult<undefined | null | string | ArrayBuffer | ArrayBufferView | SharedArrayBuffer | Iterable<number> | ArrayLike<number> | ByteBuffer>>>

    Returns Promise<Table<T>>

Static fromStruct

  • fromStruct<T>(vector: Vector<Struct<T>>): Table<T>

Static new

  • new<T>(columns: Columns<T>): Table<T>
  • new<T>(children: T): Table<object>
  • new<T>(children: ChildData<T>, fields: Fields<T>): Table<T>
  • Type parameters

    • T: object

    Parameters

    • Rest columns: Columns<T>

    Returns Table<T>

  • Type parameters

    • T: VectorMap

    Parameters

    • children: T

    Returns Table<object>

  • Type parameters

    • T: object

    Parameters

    • children: ChildData<T>
    • Optional fields: Fields<T>

    Returns Table<T>

Generated using TypeDoc