deepbox/dataframe
Accessors & Indexing
String, datetime, categorical, and multi-index helpers for richer Series and DataFrame workflows.
Accessors
Categorical
Memory-efficient categorical data type with optional ordering.
DateTimeAccessor
DateTime accessor for Series, providing vectorized date/time operations.
MultiIndex
Hierarchical (multi-level) index for DataFrames.
StringAccessor
String accessor for Series, providing vectorized string operations.
date_range
export declare function date_range(start: string | Date | number, periods: number, freq?: DateFreq): Series<Date>;
Generate a range of dates at a fixed frequency.
timedelta
export declare function timedelta(left: Series<unknown>, right: Series<unknown>, unit?: "ms" | "S" | "min" | "H" | "D"): Series<number | null>;
Compute the difference between two Date Series in the given unit.
to_datetime
export declare function to_datetime(data: ReadonlyArray<string | number | Date | null | undefined>, options?: SeriesOptions): Series<Date | null>;
Parse an array of values to Date Series.
dataframe-series.ts
import { DataFrame, Series, date_range, to_datetime } from "deepbox/dataframe";const words = new Series(["Deepbox", "v1.0.0", "Docs"]);const dates = to_datetime(["2026-01-01", "2026-02-01"]);const range = date_range("2026-01-01", 3, "D");const df = new DataFrame({ city: ["riyadh", "jeddah"], openedAt: dates.toArray(),});console.log(words.str.upper().toString());console.log(dates.dt.month().toString());console.log(range.toString());console.log(df.toString());