for label, value in s.iteritems():
s.set_value(label, value+2)
s.head()
AttributeError Traceback (most recent call last)
<ipython-input-28-5a98af01d3f1> in <module>
1 for label, value in s.iteritems():
----> 2 s.set_value(label, value+2)
3 s.head()
~\anaconda3\lib\site-packages\pandas\core\generic.py in __getattr__(self, name)
5272 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5273 return self[name]
-> 5274 return object.__getattribute__(self, name)
5275
5276 def __setattr__(self, name: str, value) -> None:
AttributeError: 'Series' object has no attribute 'set_value'