Create a common ‘key’ to cross join the two:
df1['key'] = 0
df2['key'] = 0
df1.merge(df2, on='key', how='outer')
More Related Contents:
- How to one-hot-encode from a pandas column containing a list?
- Rename Pandas DataFrame Index
- Pandas groupby cumulative sum
- Pandas DataFrame concat vs append
- Pandas counting and summing specific conditions
- Convert row to column header for Pandas DataFrame,
- Use AWS Glue Python with NumPy and Pandas Python Packages
- Pandas read csv file with float values results in weird rounding and decimal digits
- pandas – filter dataframe by another dataframe by row elements
- How to set some xlim and ylim in Seaborn lmplot facetgrid
- Left justify string values in a pandas DataFrame
- Override global variable inside function not working with Spyder 4
- Pandas: Datetime Improperly selecting day as month from date [duplicate]
- Pandas: SettingWithCopyWarning: [duplicate]
- Seaborn ValueError: zero-size array to reduction operation minimum which has no identity
- How to create a DataFrame of random integers with Pandas?
- summing two columns in a pandas dataframe
- add a row at top in pandas dataframe [duplicate]
- Find difference between two data frames
- Create new column based on values from other columns / apply a function of multiple columns, row-wise in Pandas
- Specifying date format when converting with pandas.to_datetime
- Bar graph from dataframe groupby
- What are the differences between feather and parquet?
- Grouped Bar graph Pandas
- KeyError when indexing Pandas dataframe
- pandas group by and assign a group id then ungroup
- How to use str.contains() with multiple expressions in pandas dataframes
- How to use numpy to get the cumulative count by unique values in linear time?
- Pandas: Knowing when an operation affects the original dataframe
- Pandas Secondary Axis