Create new variable in python for each iteration
The operation above is called cross-join. So one way to do it is like this. Let your first dataframe called df1 and the second one called df2.

df1['key'] = 0
df2['key'] = 0
df_joined = df1.merge(df2, how='outer', key='key')
df_joined.drop('key', inplace=True, axis=1)


This should work.