Supose this code
a = pd.DataFrame([1,2,3])
if I do
a.loc[0,'A']=3
I get:
0 A
0 1 3
1 2 NaN
2 3 NaN
Now suppose that:
a = pd.DataFrame([1,2,3])
b=pd.DataFrame([[5,4],[6,3],[7,2]],columns=['B','C'])
Is there a way to do a[1,'A','B']=b[2] that gets as result
0 B C
0 1 NaN NaN
1 2 7 2
2 3 NaN NaN
Update: I have change a bit the question because the answers supose that a and b have same indexes and it is not.