shenwei356 / csvtk

A cross-platform, efficient and practical CSV/TSV toolkit in Golang
http://bioinf.shenwei.me/csvtk
MIT License
1.01k stars 84 forks source link

index range error for csvtk csv2xlsx #138

Closed ShannonDaddy closed 3 years ago

ShannonDaddy commented 3 years ago

Hi, I got the index range error when i'm using csvtk csv2xlsx, my version is v0.22.0.

image

test.zip

what's the maximum column number csvtk csv2xlsx supports? is it 26? because I succeed with a file with 26 columns, while failed with a file with 27 columns.

please check that for me, thanks, and the error message and test file is attached.

shenwei356 commented 3 years ago

test.zip is "Not Found".

what's the maximum column number csvtk csv2xlsx supports? is it 26? because I succeed with a file with 26 columns, while failed with a file with 27 columns.

I see, in Excel, column indexes are represented with 26 letters. The 26th column is "Z", and the 27th column should be "AA".

I'll fix this later.

shenwei356 commented 3 years ago

what's the maximum column number csvtk csv2xlsx supports? is it 26? because I succeed with a file with 26 columns, while failed with a file with 27 columns.

fixed.

ShannonDaddy commented 3 years ago

what's the maximum column number csvtk csv2xlsx supports? is it 26? because I succeed with a file with 26 columns, while failed with a file with 27 columns.

fixed.

Thanks,it works, and i reupload the test.zip file.

shenwei356 commented 3 years ago

Cheers! :fireworks: