I have two pandas dataframes:
from pandas import DataFrame df1 = DataFrame({\'col1\':[1,2],\'col2\':[3,4]}) df2 = DataFrame({\'col3\':[5,6]})
With method chaining:
product = ( df1.assign(key=1) .merge(df2.assign(key=1), on="key") .drop("key", axis=1) )