如何从csv文件中删除多余的行?

时间:2019-06-18 14:11:51

标签: python csv

我有这样的文件:

    STATE,MAHARASHTRA,
    DISTRICT,MUMBAI_CITY,
    S NO.,DISTRICT,STATION, DATE ,TIME (UTC),RAINFALL CUMULATIVE,
    1,MUMBAI_CITY,MUMBAI_SANTA_CRUZ,2019-06-11,00:00:00,33,
    2,MUMBAI_CITY,MUMBAI_SANTA_CRUZ,2019-06-11,01:00:00,33,

那我该如何从多个csv文件中删除前两行

输出应如下所示:

    S NO.,DISTRICT,STATION, DATE ,TIME (UTC),RAINFALL CUMULATIVE,
    1,MUMBAI_CITY,MUMBAI_SANTA_CRUZ,2019-06-11,00:00:00,33,
    2,MUMBAI_CITY,MUMBAI_SANTA_CRUZ,2019-06-11,01:00:00,33,

0 个答案:

没有答案