splitting CSV file by columns

后端 未结 4 683
小鲜肉
小鲜肉 2020-12-20 05:34

I have a really huge CSV files. There are about 1700 columns and 40000 rows like below:

x,y,z,x1,x2,x3,x4,x5,x6,x7,x8,x9,...(about 1700 more)...,x1700
0,0,0,         


        
4条回答
  •  北海茫月
    2020-12-20 06:03

    I usually use open office ( or microsof excel in case you are using windows) to do that without writing any program and change the file and save it. Following are two useful links showing how to do that.

    https://superuser.com/questions/407082/easiest-way-to-open-csv-with-commas-in-excel

    http://office.microsoft.com/en-us/excel-help/import-or-export-text-txt-or-csv-files-HP010099725.aspx

提交回复
热议问题