danfojs icon indicating copy to clipboard operation
danfojs copied to clipboard

readExcel not importing all columns

Open olivierhbh opened this issue 3 years ago • 4 comments

Describe the bug When opening an excel file, columns with no data in first row are ignored. image

To Reproduce dfd.readExcel(remote_url, ).then(df => { df.print() });

Expected behavior In imported file (below), only 5 columns are read by readExcel, open, high, low are missing.

image

olivierhbh avatar Mar 08 '22 14:03 olivierhbh

Describe the bug When opening an excel file, columns with no data in first row are ignored. image

To Reproduce dfd.readExcel(remote_url, ).then(df => { df.print() });

Expected behavior In imported file (below), only 5 columns are read by readExcel, open, high, low are missing.

image

Interesting, 🤔 We currently use XLSX package for loading Excel files

risenW avatar Mar 09 '22 07:03 risenW

Is there any way to specify the headers? or the first row number to parse? I couldn't find any relevant options in the doc.

olivierhbh avatar Mar 09 '22 08:03 olivierhbh

Describe the bug When opening an excel file, columns with no data in first row are ignored. image To Reproduce dfd.readExcel(remote_url, ).then(df => { df.print() }); Expected behavior In imported file (below), only 5 columns are read by readExcel, open, high, low are missing. image

Interesting, 🤔 We currently use XLSX package for loading Excel files

It should be the best way at present. Forget the readExcel!

LastsForever avatar May 02 '22 02:05 LastsForever

My code seems to not import excel files at all. Although it works for csv files (with readCSV())

async function loadData(){
    let df = await dfd.readExcel('data.xlsx')
    df.head().print()
}

The data.xlsx file is in the same directory.

Error: ParamError: File not supported. file must be a url or an input File object

ShonenAsh avatar May 10 '22 10:05 ShonenAsh