I have two Multi-indexed DataFrames. One is my reference (about 37000 rows) and the other has fewer rows (e.g., 10).
I want to replace the rows of the big one with the values from the second one.
Sample df1:
lvl1 lvl2 lvl3 Value Value2
A 1 I 0,862877333 0,181795348
1 II 0,787022218 0,292046262
1 III 0,40516176 0,445079108
2 I 0,882167166 0,683954412
2 IV 0,743618024 0,103097267
3 I 0,901062673 0,729188996
3 II 0,529989452 0,715379923
3 IV 0,740272198 0,792457421
B 1 I 0,548587694 0,637462653
1 II 0,201284924 0,084391963
2 I 0,999118031 0,558207224
2 II 0,63353019 0,251377184
2 V 0,694294638 0,685050861
3 V 0,436723389 0,310871641
3 VI 0,630832871 0,869957421
3 VII 0,157874482 0,639308814
Sample df 2:
lvl1 lvl2 lvl3 Value Value2
A 1 I 0,8654 1
B 2 II 0,264 2
Resulting df3:
lvl1 lvl2 lvl3 Value Value2
A 1 I **0,8654** 0,181795348
1 II 0,787022218 0,292046262
1 III 0,40516176 0,445079108
2 I 0,882167166 0,683954412
2 IV 0,743618024 0,103097267
3 I 0,901062673 0,729188996
3 II 0,529989452 0,715379923
3 IV 0,740272198 0,792457421
1 I 0,548587694 0,637462653
B 1 II 0,201284924 0,08439196
2 I 0,999118031 0,558207224
2 II **0,264** 0,251377184
2 V 0,694294638 0,685050861
3 V 0,436723389 0,310871641
3 VI 0,630832871 0,869957421
3 VII 0,157874482 0,639308814