Skip to content

Commit fecaa61

Browse files
committed
Merge branch 'dev' of https://github.com/lyhue1991/danfojs into lyhue1991-dev
2 parents 580cc06 + 7ec7929 commit fecaa61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/danfojs-base/io/node/io.excel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const $readExcel = async (filePath: string, options: ExcelInputOptionsNode = {})
7171
const arrBufInt8 = new Uint8Array(arrBuf);
7272
const workbook = read(arrBufInt8, { type: "array", ...parsingOptions });
7373
const worksheet = workbook.Sheets[workbook.SheetNames[sheet]];
74-
const data = utils.sheet_to_json(worksheet);
74+
const data = utils.sheet_to_json(worksheet,{'defval':null});
7575
const df = new DataFrame(data, frameConfig);
7676
resolve(df);
7777
});
@@ -89,7 +89,7 @@ const $readExcel = async (filePath: string, options: ExcelInputOptionsNode = {})
8989

9090
const workbook = readFile(filePath, parsingOptions);
9191
const worksheet = workbook.Sheets[workbook.SheetNames[sheet]];
92-
const data = utils.sheet_to_json(worksheet);
92+
const data = utils.sheet_to_json(worksheet,{'defval':null});
9393
const df = new DataFrame(data, frameConfig);
9494
resolve(df);
9595
})

0 commit comments

Comments
 (0)