Python - TypeError: expecting string or bytes object

前端 未结 1 1523
误落风尘
误落风尘 2021-01-21 05:12

After much research I cannot figure out why I receive this error in my code.

I\'m trying to export a Pandas Dataframe to my Oracle table. I have successfully done this h

相关标签:
1条回答
  • 2021-01-21 05:44

    Based on the export data noted above, the problem you are experiencing is due to the fact that the data in one row is not the same type as the data in subsequent rows. In your case, in one row you have the value '04/02/13' (as a string) and in the next row you have the value 0 (as an integer). You will need to make sure that the data type is consistent for the column across all rows.

    0 讨论(0)
提交回复
热议问题