Hi,
You can use at() method to update your dataset. I have attached one example for your reference.
import pandas as pd
df1=pd.read_csv('my.csv')
| Place |
State |
| 0 |
Kolkata |
WestBengal |
| 1 |
Delhi |
Delhi |
| 2 |
Bangalore |
Karnataka |
| 3 |
Kolkata |
WestBengal |
| 4 |
Delhi |
Delhi |
df1.at[0,'Place']= 'Mumbai'
| Place |
State |
| 0 |
Mumbai |
WestBengal |
| 1 |
Delhi |
Delhi |
| 2 |
Bangalore |
Karnataka |
| 3 |
Kolkata |
WestBengal |
| 4 |
Delhi |
Delhi |
I hope this will help you.