change a value in a row pandas 1

change a value in a row pandas

dataframe.at[index,'column-name']='new value'

Here is what the above code is Doing:
1. We’re using the .at[] method to access the value at the specified index and column.
2. We’re assigning the value ‘new value’ to the specified index and column.

Similar Posts