Skip to content

Instantly share code, notes, and snippets.

@theSekyi
Created May 17, 2019 09:11
Show Gist options
  • Select an option

  • Save theSekyi/734d9ea07d9797eae0b20165f0f24629 to your computer and use it in GitHub Desktop.

Select an option

Save theSekyi/734d9ea07d9797eae0b20165f0f24629 to your computer and use it in GitHub Desktop.
mappings_for_quality = {
3:"A",
4:"B",
5:"C",
6:"D",
7:"E",
8:"F"
}
df['quality'].replace(mappings_for_quality,inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment