Home>

I think the code below has no attributes, but how do I change the code content?
I would appreciate it if you could teach me.

spot_name = spot_name.text.resplace ('\ n','')
spot_name
↓
-----------------------------------------
AttributeErrorTraceback (most recent call last)
<ipython-input-58-e45a7b9a777b>in<module>
---->1 spot_name = spot_name.text.resplace ('\ n','')
      2 spot_name
AttributeError:'str' object has no attribute'resplace'