Python Pandas: AttributeError: 'DataFrame' object has no attribute 'str'

后端 未结 0 728
无人共我
无人共我 2020-12-16 09:03

Using Python Pandas and importing an Excel document, the following code is kicking back an error:

df[\'City\'] = df[\'City\'].astype(str)
df[\'Rent\'] = np.wh         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题