Is it possible to add a value in a column when the province name of second dataframe matches with the province name of the first dataframe? I searched for answers and weren't able to find anything useful for my case.
This is first DataFrame
date province confirmed released deceased
0 2020-03-30 Daegu 6624 3837 111
1 2020-03-30 Gyeongsangbuk-do 1298 772 38
2 2020-03-30 Gyeonggi-do 463 160 5
3 2020-03-30 Seoul 426 92 0
4 2020-03-30 Chungcheongnam-do 127 83 0
...
and this is second DataFrame
code province latitude longitude
0 12000 Daegu 35.872150 128.601783
1 60000 Gyeongsangbuk-do 36.576032 128.505599
2 20000 Gyeonggi-do 37.275119 127.009466
3 10000 Seoul 37.566953 126.977977
4 41000 Chungcheongnam-do 36.658976 126.673318
...
I would like to turn the first DataFrame like this.
date province confirmed released deceased latitude longitude
0 2020-03-30 Daegu 6624 3837 111 35.872150 128.601783
1 2020-03-30 Gyeongsangbuk-do 1298 772 38 36.576032 128.505599
2 2020-03-30 Gyeonggi-do 463 160 5 37.275119 127.009466
3 2020-03-30 Seoul 426 92 0 37.566953 126.977977
4 2020-03-30 Chungcheongnam-do 127 83 0 36.658976 126.673318
...
Thanks!