Skip to content

Instantly share code, notes, and snippets.

@GeorgeSeif
Last active October 11, 2019 00:08
Show Gist options
  • Save GeorgeSeif/416ff9f4461b43505b03b9d4a6083898 to your computer and use it in GitHub Desktop.
Save GeorgeSeif/416ff9f4461b43505b03b9d4a6083898 to your computer and use it in GitHub Desktop.
import pandas as pd
foods = pd.Series(["Bread", "Rice", "Steak", "Ham", "Chicken",
"Apples", "Potatoes", "Mangoes", "Fish",
"Bread", "Rice", "Steak", "Ham", "Chicken",
"Apples", "Potatoes", "Mangoes", "Fish",
"Apples", "Potatoes", "Mangoes", "Fish",
"Apples", "Potatoes", "Mangoes", "Fish",
"Bread", "Rice", "Steak", "Ham", "Chicken",
"Bread", "Rice", "Steak", "Ham", "Chicken",
"Bread", "Rice", "Steak", "Ham", "Chicken",
"Apples", "Potatoes", "Mangoes", "Fish",
"Apples", "Potatoes", "Mangoes", "Fish",
"Apples", "Potatoes", "Mangoes", "Fish",
"Bread", "Rice", "Steak", "Ham", "Chicken",
"Bread", "Rice", "Steak", "Ham", "Chicken",])
groups_dict = {
"Protein": ["Steak", "Ham", "Chicken", "Fish"],
"Carbs": ["Bread", "Rice", "Apples", "Potatoes", "Mangoes"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment