Back
Hi. I am trying to change the value of a cell and I am trying this:
(df.set_value('0','Name','0'))
But I am getting the following error:
set_value is deprecated and will be removed in a future release
And the value is not getting changed.
As the set_value function is deprecated, now you can easily use the at() method now.
For example:
df.at[row name, column name]=valuedf.at[0,’Name’]=0
df.at[row name, column name]=value
df.at[0,’Name’]=0
Hope this answer helps you!
And for more, study the Pandas Tutorial.
30.9k questions
32.9k answers
500 comments
665 users