GitHub
deepbox/dataframe

DataFrame & Series

The tabular core of Deepbox, including DataFrame, Series, grouping, and shared dataframe types.
Tabular API
type AggregateFunction
export type AggregateFunction = "sum" | "mean" | "median" | "min" | "max" | "std" | "var" | "count" | "first" | "last";
Supported aggregation functions for DataFrame groupby operations.
type DataFrameData
export type DataFrameData = Record<string, unknown[]>;
Column-oriented data for DataFrame construction.
type DataFrameOptions
export type DataFrameOptions = { index?: (string | number)[]; columns?: string[]; copy?: boolean; };
Configuration options for DataFrame construction.
type DataValue
export type DataValue = number | string | boolean | null | undefined;
Data structure for DataFrame initialization.
type SeriesOptions
export type SeriesOptions = { name?: string; index?: (string | number)[]; copy?: boolean; };
Configuration options for Series construction.

DataFrame

Two-dimensional, size-mutable, potentially heterogeneous tabular data.

DataFrameGroupBy

GroupBy object for aggregation operations.

Series

One-dimensional labeled array capable of holding any data type.

dataframe-overview.ts
import { DataFrame, Series } from "deepbox/dataframe";const df = new DataFrame({  name: ["Alice", "Bob", "Charlie"],  team: ["A", "A", "B"],  score: [91, 84, 96],});const s = new Series([1, 2, 3, 4], { name: "value" });console.log(df.groupBy("team").mean().toString());console.log(s.mean(), s.std());