(psycopg2.DataError) invalid input syntax for integer: importing from csv file?

前端 未结 2 987
庸人自扰
庸人自扰 2021-01-24 06:49

the data in my csv file is like this:

081299289X,China Dolls,Lisa See,2014
0345498127,Starter for Ten,David Nicholls,2003
0061053716,Imajica,Clive Barker,1991
05         


        
2条回答
  •  一生所求
    2021-01-24 07:29

    From the looks of it your CSV contains a header as the first row. Skip it with for example

    next(reader, None)
    

    before your for-loop.

提交回复
热议问题