Last active
September 21, 2020 02:58
-
-
Save YiLi225/ebd04910723e0145f24eb782a513250e to your computer and use it in GitHub Desktop.
This file contains 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
## Modify the food table | |
food_dict = {"Food": dairy_table['Food'], | |
"Nums": list(zip(dairy_table['Grams'], dairy_table['Calories']))} | |
df = pd.DataFrame(food_dict) | |
## "Column Nums as tuples of values": | |
Food Nums | |
index0 Cows' milk, whole (976, 660) | |
index1 skim, instant milk powder (984, 360) | |
index2 Buttermilk, cultured (246, 127) | |
index3 Evaporated, undiluted (252, 345) | |
index4 Fortified milk (1419, 1373) | |
index5 Powdered milk, whole (103, 515) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment