MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / constructor

Method constructor

src/danfojs-base/core/frame.ts:50–54  ·  view source on GitHub ↗
(data: any, options: BaseDataOptionType = {})

Source from the content-addressed store, hash-verified

48export default class DataFrame extends NDframe implements DataFrameInterface {
49 [key: string]: any
50 constructor(data: any, options: BaseDataOptionType = {}) {
51 const { index, columns, dtypes, config } = options;
52 super({ data, index, columns, dtypes, config, isSeries: false });
53 this.$setInternalColumnDataProperty();
54 }
55
56 /**
57 * Maps all column names to their corresponding data, and return them as Series objects.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected