I have two dataframes (df1 and df2) of different size.
df1
NUTS lvl2 Code
Greece GR
Italy IT
Germany DE
and df2
Ports Code Year
Patras GR 2010
Lefkada GR 2010
Bergamo IT 2010
Palermo IT 2011
I try to figure out how to take df2 as follow:
Ports Code Year NUTS lvl2
Patras GR 2010 Greece
Lefkada GR 2010 Greece
Bergamo IT 2010 Italy
Palermo IT 2011 Italy
Could you please help me figure this out? I am trying with "where" and conditions but I have no luck so far. Ditto for inner joins.