0 votes
1 view
in Machine Learning by (12.5k 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 (32.7k 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!

...