Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd df1 = pd.DataFrame([[1, 2], [None, 4]]) df2 = pd.DataFrame([[5, 6], [7, 8]]) print(df1.combine_first(df2))
0 1 0 1.0 2 1 7.0 4