【发布时间】:2015-06-23 09:12:53
【问题描述】:
如何从 excel 转换为 CSV 以使用 weka“arff 文件”打开?我知道我应该将文件保存在 csv"coma delimited" 中并用 weka 打开它。 但是当我这样做时我的问题是我看到所有属性都转换为一个属性
此文件截图,在将我的数据从 Excel 导出到 CSV 之后,我在纯文本编辑器 (Notepad++) 中打开它!
> Student Track ;Elective course ;Student level;Elective course grade;IC Selm;ARAB;MATH106 Integral Calculus ;MATH 244 Linear Algebra;CSC 113 Computer Programming (2);IT 221 Computer Organization & Assembly Language;IT 211 HCI (1);IT212 Data Structures;IT 224 Networks(1);IT 321 Computer Architecture ;IT 311 Web Applications;IT 323 Software Engineering (2);IT 325 Operating Systems ;IT 324 Information Security ;IT 351 Wireless & Mobile Computing;IT 331 Database Management Systems ;IT 434 Data Warehousing & Data Mining;IT 453 Information Security & Assurance;IT 422 Intelligent Systems;IT 424 Networks (2);IT 419 Ethical Issues in Information ;IT 443 Advanced HCI (2);IT 454 Computer Forensics;IT 361 E-commerce;IT 342 Multimedia;IT 352 Network Security;IT 496 Project (1);IT 497 Project (2) ;IT 499 Seminar ;Free;Student GPA ( Semester );Student GPA (Cumulative );
Network & Security;IT 454 Computer forensic ;8;B+;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;4.75 - 5;4.75 - 5;
Network & Security;IT 454 Computer forensic ;8;B+;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;1;1;1;0;0;0;0;0;0;0;0;0;0;4.75 - 5;4.75 - 5;
Data Management;IT 332 Distributed Systems;8;A+;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;1;1;1;0;0;0;0;0;0;0;0;0;4.75 - 5;4.75 - 5;
Data Management;IT 332 Distributed Systems;8;B+;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;1;1;0;0;0;0;0;0;0;0;0;0;4 - 4.5;4 - 4.5;
Network & Security;IT 351 Wireless;6;A+;0;0;0;0;0;0;0;0;0;1;0;1;1;0;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;4.75 - 5;4.75 - 5;
Data Management;IT 332 Distributed Systems;8;A+;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;4.75 - 5;4.75 - 5;
【问题讨论】:
-
那些不是逗号,它们是分号。当您导入 Excel 时,您应该能够选择分号作为分隔符,它会为您将值放入单独的列中。
-
对不起,你能解释更多吗?怎么能 (( 选择分号作为分隔符 )) ? @JoeMalpass 谢谢你
-
我误读了您的问题,我以为您正在导入 Excel,而不是从中导出。我不确定 Excel 是如何像那样导出文件的——当我将工作表从 Excel 保存为 CSV 文件,然后在 Notepad++ 中打开它时,它是逗号分隔的,而不是分号分隔的。您如何导出数据?