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

Method constructor

src/danfojs-base/shared/config.ts:28–48  ·  view source on GitHub ↗
(options: ConfigsType)

Source from the content-addressed store, hash-verified

26 lowMemoryMode: boolean;
27
28 constructor(options: ConfigsType) {
29 const {
30 tableDisplayConfig,
31 tableMaxRow,
32 tableMaxColInConsole,
33 dtypeTestLim,
34 lowMemoryMode,
35 } = {
36 tableDisplayConfig: {},
37 tableMaxRow: 10,
38 tableMaxColInConsole: 10,
39 dtypeTestLim: 500,
40 lowMemoryMode: false,
41 ...options
42 }
43 this.tableDisplayConfig = tableDisplayConfig
44 this.tableMaxRow = tableMaxRow // The maximum number of rows to display in console
45 this.tableMaxColInConsole = tableMaxColInConsole // The maximum number of columns to display in console
46 this.dtypeTestLim = dtypeTestLim // The number of rows to use when inferring data type
47 this.lowMemoryMode = lowMemoryMode // Whether to use minimal memory or not.
48 }
49
50 setTableDisplayConfig(config: BaseUserConfig & TableUserConfig) {
51 this.tableDisplayConfig = config;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected