Last active
October 11, 2019 00:08
-
-
Save GeorgeSeif/416ff9f4461b43505b03b9d4a6083898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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