pandas two dataframe cross join [duplicate] May 13, 2023 by Tarik Create a common ‘key’ to cross join the two: df1['key'] = 0 df2['key'] = 0 df1.merge(df2, on='key', how='outer')