hello world somebody can help me to correct this error

0 votes

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'
Jun 6, 2020 in Python by WELL
• 140 points
1,071 views
Hi@well,

Can you share your code? It will be easy for us to find the solution.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

+1 vote
1 answer

Can anyone help me with this error: TypeError: list indices must be integers or slices, not str

Hi, @Varshap  It’s a TypeError, which tells us ...READ MORE

answered Nov 5, 2020 in Python by anonymous
• 65,770 points
2,359 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Please Help me About this Pygame Error installing on pip

Hi, @Micheal, Download pygame‑1.9.3‑cp37‑cp37m‑win_amd64. While if you have a 64-bit ...READ MORE

answered Oct 12, 2020 in Python by Gitika
• 65,770 points
3,359 views
0 votes
1 answer

Can anyone explain me this error?

It is an Indentation error. There should be ...READ MORE

answered Oct 14, 2020 in Python by Gitika
• 65,770 points
675 views
0 votes
0 answers

hello guys i need help to make this code run plz !

H= float (input("Is this circuit charging& ...READ MORE

Nov 25, 2020 in Python by anonymous
• 120 points
518 views
0 votes
1 answer

HI Mr / Mrs I have problem with my jupiter notebook when i try to learn Your video about Machine Learning. Can You help me please ?

Hi@Herlambang, I think you have a 32-bit system. ...READ MORE

answered Dec 18, 2020 in Python by MD
• 95,460 points
751 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP