Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Machine Learning by (19k points)

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. 

1 Answer

0 votes
by (33.1k points)

As the set_value function is deprecated, now you can easily use the at() method now.

For example:

df.at[row name, column name]=value

df.at[0,’Name’]=0

Hope this answer helps you!

And for more, study the Pandas Tutorial.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...