Snippets Collections
# Setup fake key in both DataFrames to join on it

df1['key'] = 0
df2['key'] = 0

df1.merge(df2, on='key', how='outer')
star

Mon Aug 29 2022 12:59:46 GMT+0000 (Coordinated Universal Time)

#python #pandas #dataframe #crossjoin

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension