join two dataframes with the same columns pandas code example
Example 1: pandas combine two data frames with same index and same columns
pd.merge(df1, df2, left_index=True, right_index=True, how='outer')
Example 2: combine dataframes with two matching columns
merged_df = DF2.merge(DF1, how = 'inner', on = ['date', 'hours'])