Skip to content

Commit bf84bd8

Browse files
committed
Refactor danfojs-node to use new shared base
1 parent 2409d23 commit bf84bd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4007
-3773
lines changed
File renamed without changes.

src/base/core/frame.ts

Lines changed: 2421 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ import {
2323
LoadObjectDataType,
2424
AxisType,
2525
ArrayType1D,
26-
ArrayType2D,
27-
CsvOutputOptionsNode,
26+
ArrayType2D
2827
} from '../shared/types'
2928
import ErrorThrower from '../shared/errors';
3029
import { BASE_CONFIG, DATA_TYPES } from '../shared/defaults';
31-
import { toCSV, toJSON, toExcel } from "../io"
3230
import { Tensor, tensor1d, tensor2d } from "@tensorflow/tfjs-node"
3331

3432
const utils = new Utils();
@@ -426,10 +424,10 @@ export default class NDframe implements NDframeInterface {
426424
* - `header`: Boolean indicating whether to include a header row in the CSV file.
427425
* - `sep`: Character to be used as a separator in the CSV file.
428426
*/
429-
toCSV(options?: CsvOutputOptionsNode): string
430-
toCSV(options?: CsvOutputOptionsNode): string | void {
431-
return toCSV(this, options);
432-
}
427+
// toCSV(options?: CsvOutputOptionsNode): string
428+
// toCSV(options?: CsvOutputOptionsNode): string | void {
429+
// return toCSV(this, options);
430+
// }
433431

434432
/**
435433
* Converts a DataFrame or Series to JSON.
@@ -447,10 +445,10 @@ export default class NDframe implements NDframeInterface {
447445
* }
448446
* ```
449447
*/
450-
toJSON(options?: { format?: "row" | "column", filePath?: string }): object
451-
toJSON(options?: { format?: "row" | "column", filePath?: string }): object | void {
452-
return toJSON(this, options);
453-
}
448+
// toJSON(options?: { format?: "row" | "column", filePath?: string }): object
449+
// toJSON(options?: { format?: "row" | "column", filePath?: string }): object | void {
450+
// return toJSON(this, options);
451+
// }
454452

455453

456454
/**
@@ -459,9 +457,9 @@ export default class NDframe implements NDframeInterface {
459457
* - `sheetName`: The sheet name to be written to. Defaults to `'Sheet1'`.
460458
* - `filePath`: The filePath to be written to. Defaults to `'./output.xlsx'`.
461459
*/
462-
toExcel(options?: { filePath?: string, sheetName?: string }): void {
463-
return toExcel(this, options);
464-
}
460+
// toExcel(options?: { filePath?: string, sheetName?: string }): void {
461+
// return toExcel(this, options);
462+
// }
465463

466464
/**
467465
* Pretty prints a DataFrame or Series to the console

0 commit comments

Comments
 (0)