Пример:
Код: Выделить всё
df_A
A B C
index
0 3 5.00 8.00
1 8 25.00 NaN
2 1 NaN 111.00
df_B
A B C
index
0 NaN 8.00 13.00
1 1.00 NaN NaN
2 8.00 8.00 8.00
Код: Выделить всё
A B C
index
0 3 5.00 8.00
1 8 25.00 NaN
2 1 8.00 111.00 #
Подробнее здесь: [url]https://stackoverflow.com/questions/78684876/fill-in-null-values-of-one-pandas-dataframe-with-another-dataframe[/url]