I have two dataframes where 1, 2, 3 is the connection between the dataframes:
1 2 3
2016-10-03 12 10 10
2016-10-04 4 4 5
......
and
name year
1 apple 2001
2 lemon 2002
3 kiwi 1990
The end result should be:
apple lemon kiwi
2016-10-03 12 10 10
2016-10-04 4 4 5
......
I can't figure out how to do this.