RAPIDS
    Preparing search index...

    Module @rapidsai/cudf

      node-rapids cuDF - GPU DataFrames

    npm install @rapidsai/cudf

    The js bindings for cuDF provides an API that will be familiar to data engineers & data scientists, so they can use it to easily accelerate their workflows in a Javascript runtime environment, without going into the details of CUDA programming.

    For example, the following snippet creates a series, then uses the GPU to run some calculations:

    var { Series, Int32 } = require("@rapidsai/cudf");

    var series1 = Series.new({ type: new Int32(), data: [1, 2, 3] });
    console.log(series1.mean()); // 2
    console.log(series1.max()); // 3

    The following snippet creates a DataFrame, then uses the GPU to to run some calculations:

    var {
    DataFrame,
    DataType,
    Float64,
    GroupBy,
    Int32,
    Series,
    } = require("@rapidsai/cudf");

    var a = Series.new({ type: new Int32(), data: [5, 4, 3, 2, 1, 0] });
    var b = Series.new({ type: new Int32(), data: [0, 0, 1, 1, 2, 2] });
    var df = new DataFrame({ a: a, b: b });
    var grp = new GroupBy({ obj: df, by: ["a"] });

    var groups = grp.getGroups();

    console.log(...groups["keys"].get("a")); // [0,1,2,3,4,5]
    console.log(...groups.values?.get("b")); // [2,2,1,1,0,0]
    console.log(...groups["offsets"]); // [0,1,2,3,4,5,6]

    For detailed node-cuDF API, follow our API Documentation.

    Namespaces

    addon

    Enumerations

    DuplicateKeepOption
    Interpolation
    NullOrder

    The desired order of null compared to other elements for a column.

    Classes

    AbstractSeries
    Bool8
    Bool8Series
    Categorical
    DataFrame
    Disposer
    Float32
    Float32Series
    Float64
    Float64Series
    GroupByMultiple
    GroupBySingle
    Int16
    Int16Series
    Int32
    Int32Series
    Int64
    Int64Series
    Int8
    Int8Series
    List
    ListSeries
    StringSeries
    Struct
    StructSeries
    TimestampDay
    TimestampMicrosecond
    TimestampMillisecond
    TimestampNanosecond
    TimestampSecond
    Uint16
    Uint16Series
    Uint32
    Uint32Series
    Uint64
    Uint64Series
    Uint8
    Uint8Series
    Utf8String

    Interfaces

    Column
    ColumnConstructor
    GroupBy
    GroupByBaseProps
    GroupByConstructor
    GroupByMultipleProps
    GroupByProps
    GroupBySingleProps
    ReadCSVBufferOptions
    ReadCSVFileOptions
    ReadCSVOptionsCommon
    Table
    TableConstructor
    TableWriteCSVOptions
    WriteCSVOptions

    Type Aliases

    ColumnProps
    ColumnsMap
    CommonType
    CommonTypes
    DataType
    FloatingPoint
    IndexType
    Integral
    Numeric
    OrderSpec
    PadSideType
    ReadCSVOptions
    Series
    SeriesMap
    SeriesProps
    Timestamp
    ToArrowMetadata
    TypeMap

    Variables

    arrowToCUDFType
    Column
    DISPOSER
    FloatTypes
    GroupBy
    IntegralTypes
    NumericTypes
    Series
    Table

    Functions

    findCommonType
    scope