You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Column is not being pulled through into dataframe
When uploading an excel which has the topmost row empty for a given column, that column will not come throw
To Reproduce
Steps to reproduce the behavior:
Create an excel which has headers and the top most row for column X is empty
dfd.readExcel
console.log(df.columns)
See column missing
Expected behavior
The column should be there
Desktop (please complete the following information):
OS: MacOS
Browser Safari
Version 1.1.2
The text was updated successfully, but these errors were encountered:
Danfo team - I would suggest extending the current ExcelInputOptionsBrowser object to include an object that can be spread out as args when calling this function
utils.sheet_to_json(worksheet)
I will raise a PR for this if I have time
PS: my current working implementation:
// parse excel using XLSX
const arrBuf = await file.arrayBuffer();
const arrBufInt8 = new Uint8Array(arrBuf);
const workbook = XLSX.read(arrBufInt8, { type: 'array' });
const worksheet = workbook.Sheets[workbook.SheetNames[0]];
const data = XLSX.utils.sheet_to_json(worksheet, { defval: '' });
// instantiate new dataframe
let df = new dfd.DataFrame(data)
Ref #593
Describe the bug
Column is not being pulled through into dataframe
When uploading an excel which has the topmost row empty for a given column, that column will not come throw
To Reproduce
Steps to reproduce the behavior:
dfd.readExcel
console.log(df.columns)
Expected behavior
The column should be there
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: