0

I have two dataframes: Weather and Guest Counts. To simplify they look like these:

enter image description here

enter image description here

I was trying to merge two data frames based on the "date" and "time_period" columns. The ideal result looks like something like this:

!

I did this but nothing came out. I am not sure what the issue is.

f = pd.merge(left=df2,right=dp2, left_on=['date','time_period'], right_on=['date','time_period'])

Result: enter image description here

LLL
  • 419
  • 2
  • 6
  • 17

0 Answers0