BoxFrame Static Methods
BoxFrame is a static namespace - it contains only static methods for creating DataFrames, Series, and performing data operations. You never instantiate BoxFrame. Instead, use it as a factory and utility namespace.
DataFrame Creation
BoxFrame.DataFrame(data: DataFrameInput, options?)- Create DataFrameBoxFrame.fromRecord(data: Record<string, ColumnData>, options?)- Create from recordBoxFrame.fromObjects(objects: RowData[], options?)- Create from array of objects
Series Creation
BoxFrame.Series(data: DataValue[], options?)- Create SeriesBoxFrame.fromArray(data: DataValue[], options?)- Create Series from array
Data I/O
BoxFrame.readCsv(pathOrUrl: string, options?)- Read CSV file or URLBoxFrame.parseCsv(content: string, options?)- Parse CSV stringBoxFrame.readJson(pathOrUrl: string, options?)- Read JSON fileBoxFrame.readGoogleSheet(spreadsheetId: string, sheetName?, options?)- Read Google SheetsBoxFrame.readGoogleSheetFromUrl(url: string, sheetName?, options?)- Read Google Sheets from URL
Data Manipulation
BoxFrame.concat(dataFrames: DataFrame[], axis?, options?)- Concatenate DataFramesBoxFrame.toNumeric(data: Series | DataValue[])- Convert to numericBoxFrame.toDatetime(data: Series | DataValue[])- Convert to datetimeBoxFrame.cut(data: Series, bins: number | number[], labels?)- Cut into binsBoxFrame.dateRange(options?)- Generate date range