如何使用java删除csv文件中的特定列 [英] how to delete the particular columns in csv file using java
问题描述
这是.csv文件:
姓名,Dwa帐户表现
类型,帐户
频率,每日
日期范围,自定义日期范围
日期,2015年11月2日
帐户,日,客户ID,点击次数,印象,点击率,平均。 CPC,平均CPM,费用,平均。位置,转换后的点击次数,转化次数,转化次数率,总转化率价值
Canvas,2015-11-02,954-778-0978,3,307,0.98%,3.35,32.74,10.05,3.8,0,0,0.00%,0.0
联想,2015-11-02,165-758-4238,0,13,0.00%,0.00,0.00,0.00,1.8,0,0,0.00%,0.0
Smart Kapp,2015-11- 02,776-278-4410,3,287,1.05%,1.65,17.21,4.94,1.9,0,0,0.00%,0.0
总计, - , - ,6,607,0.99%,2.50, 24.70,14.99,2.8,0,0, - ,0.0
我想跳过前5行,必须删除上面.csv文件中的任意两列。
你能否发送完整的代码...
不,我们不能发送完整的编码;这个网站不存在为他们做其他人的工作。请了解如何进行自己的研究: https://www.google.com/search?q=java+csv [ ^ ]。
Here is the .csv file:
Name,Dwa Account Performance
Type,Account
Frequency,Daily
Date range,Custom date range
Dates,"Nov 2, 2015"
Account,Day,Customer ID,Clicks,Impressions,CTR,Avg. CPC,Avg. CPM,Cost,Avg. position,Converted clicks,Conversions,Conv. rate,Total conv. value
Canvas,2015-11-02,954-778-0978,3,307,0.98%,3.35,32.74,10.05,3.8,0,0,0.00%,0.0
Lenovo,2015-11-02,165-758-4238,0,13,0.00%,0.00,0.00,0.00,1.8,0,0,0.00%,0.0
Smart Kapp,2015-11-02,776-278-4410,3,287,1.05%,1.65,17.21,4.94,1.9,0,0,0.00%,0.0
Total, --, --,6,607,0.99%,2.50,24.70,14.99,2.8,0,0, --,0.0
I want to skip first 5 rows and have to delete any two columns in the above .csv file.
Can you please send the complete coding for that...
No we cannot send the complete coding; this site does not exist to do other people's work for them. Please learn how to do your own research: https://www.google.com/search?q=java+csv[^].
这篇关于如何使用java删除csv文件中的特定列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!