You can try yo use the following snippet.
df1.loc[df1.index[-1], 'col1'] = df2.loc[df2.index[-1], 'col1']
On my machine with pandas version 2.2.3 is gives no warnings.
2.2.3