i am working with this data-frame:print(abc)  cyl mpg
0    4  21.0
1    6  21.0
2    4  22.8
3    4  21.4
4    8  18.7
5    4  18.1
i would want to replace the values of the fourth row with -> cyl:6,mpg:19.4
replacing a row in pandas data.frame
abc.loc[3]=[6,19.4]this command takes in the index of the row, where the values are to be replaced. since the index of 4th row is 3, we'll assign abc.loc[3]=[6,19.4]this gives us the desired result:print(abc) cyl  mpg
0    4  21.0
1    6  21.0
2    4  22.8
3    6  19.5
4    8  18.7
5    4  18.1

key error. i love python