Skip to content

Instantly share code, notes, and snippets.

@ccerv1
Created February 23, 2019 13:30
Show Gist options
  • Select an option

  • Save ccerv1/7a12fb1e492da1c92ecbb924badfe048 to your computer and use it in GitHub Desktop.

Select an option

Save ccerv1/7a12fb1e492da1c92ecbb924badfe048 to your computer and use it in GitHub Desktop.
Rename country indices that have alternative spellings
world_production.rename({
"Cote d'Ivoire": "Côte d'Ivoire",
"Central African Republic": "Central African Rep.",
"Congo (Kinshasa)": "Dem. Rep. Congo",
"Dominican Republic": "Dominican Rep.",
"Laos": "Lao PDR"
}, inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment