Preview:
GDP_merged = pd.merge(GDP2020_rename, GDP2021_rename, how="right", on=["CountryName"])
GDP_merged
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter