Adding the header to a csv file

后端 未结 4 1216
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 20:21

I have a csv file with the dimensions 100*512 , I want to process it further in spark. The problem with the file is that it doesn\'t contain header i.e

4条回答
  •  情歌与酒
    2021-01-26 20:24

    Unix:

    cat header_file.csv data_file.csv > data_file.csv
    

    Windows:

    type header_file.csv data_file.csv > data_file.csv
    

提交回复
热议问题