Pandas error “Can only use .str accessor with string values”

前端 未结 3 1428
暗喜
暗喜 2020-12-16 14:29

I have the following input file:

\"Name\",97.7,0A,0A,65M,0A,100M,5M,75M,100M,90M,90M,99M,90M,0#,0N#,

And I am reading it in with:



        
3条回答
  •  孤街浪徒
    2020-12-16 15:14

    I got this error while working in Eclipse. It turned out that the project interpreter was somehow (after an update I believe) reset to Python 2.7. Setting it back to Python 3.6 resolved this issue. It all resulted in several crashes, restarts and warnings. After several minutes of troubles it seems fixed now.

    While I know this is not a solution to the problem posed here, I thought it might be useful for others, as I came to this page after searching for this error.

提交回复
热议问题