Calcium, Ca float64 0 351k | Carbohydrate, by difference float64 0 5k | Cholesterol float64 0 833k | Energy float64 0 28k | Fatty acids, total saturated float64 0 1k | Fatty acids, total trans float64 0 615 | Fiber, total dietary float64 0 2.47k | Iron, Fe float64 0 35.7k | Protein float64 0 2.63k | Sodium, Na float64 0 11M | Total lipid (fat) float64 0 2k | data_type stringclasses 2
values | food_item stringlengths 3 567 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | 0 | 62 | 107 | 0 | 0 | 0 | 1.29 | 25 | 49 | 0.45 | branded_food | HONEYSUCKLE WHITE - turkey breast roast |
18 | 0 | 62 | 107 | 0 | 0 | 0 | 1.29 | 25 | 80 | 0.89 | branded_food | HONEYSUCKLE WHITE - fresh 99% fat free turkey breast tenderloins 6pk |
18 | 0 | 85 | 196 | 3.12 | 0 | 0 | 1.61 | 16.96 | 76 | 13.39 | branded_food | HONEYSUCKLE WHITE - turkey thighs |
0 | 1.35 | 61 | 162 | 2.7 | 0 | 0 | 1.95 | 16.22 | 689 | 9.46 | branded_food | Honeysuckle White - hsw turkey breakfast sausage links |
0 | 4.05 | 61 | 176 | 2.7 | 0 | 0 | 1.95 | 16.22 | 635 | 9.46 | branded_food | Honeysuckle White - hsw maple turkey sausage |
18 | 0 | 89 | 214 | 4.46 | 0 | 0 | 0.96 | 18.75 | 103 | 15.18 | branded_food | HONEYSUCKLE WHITE - 85% ground turkey |
0 | 0 | 58 | 125 | 0.89 | 0 | 0 | 1.29 | 23.21 | 67 | 2.68 | branded_food | HONEYSUCKLE WHITE - fresh ground turkey 97% |
71 | 1.79 | 31 | 107 | 0 | 0 | 0 | 0.96 | 18.75 | 420 | 3.57 | branded_food | HONEYSUCKLE WHITE - lemon garlic turkey tenderloin |
18 | 0 | 71 | 196 | 3.12 | 0 | 0 | 1.29 | 20.54 | 54 | 12.5 | branded_food | HONEYSUCKLE WHITE - turkey v-wings portions |
29 | 1.43 | 64 | 171 | 2.86 | 0 | 0 | 1.54 | 17.14 | 671 | 10 | branded_food | HONEYSUCKLE WHITE - frozen sweet italian turkey sausage |
18 | 0 | 67 | 134 | 1.34 | 0 | 0 | 0.64 | 19.64 | 179 | 5.36 | branded_food | Honeysuckle White - hsw frozen young turkey 9.5% sln 10-16 timer/netted/preprice |
17 | 4.13 | 0 | 21 | 0 | 0 | 0.8 | 0.3 | 0.83 | 99 | 0 | branded_food | Tuttorosso Green - 28oz. whole peeled plum tomatoes in juice |
17 | 4.13 | 0 | 21 | 0 | 0 | 0.8 | 0.3 | 0.83 | 17 | 0 | branded_food | Tuttorosso Green - 28oz. nsa whole peeled plum tomatoes in juice |
17 | 4.13 | 0 | 21 | 0 | 0 | 0.8 | 0.3 | 0.83 | 149 | 0 | branded_food | Tuttorosso Green - 28oz. diced tomatoes in juice |
0 | 4.13 | 0 | 21 | 0 | 0 | 0.8 | 0 | 0.83 | 149 | 0 | branded_food | Tuttorosso Green - tutturosso green 14.5oz. diced tomatoes |
0 | 4.13 | 0 | 21 | 0 | 0 | 0.8 | 0 | 0.83 | 149 | 0 | branded_food | Tuttorosso Green - tutturosso green 14.5oz. petite diced tomatoes |
30 | 20.2 | 5 | 152 | 1.01 | 0 | 2 | 0.91 | 5.56 | 212 | 5.05 | branded_food | Banquet - spaghetti and popcorn chicken dinner, 7 oz |
0 | 0 | 100 | 320 | 9 | 0 | 0 | 1.44 | 22 | 660 | 26 | branded_food | Odom's Tennessee Pride - odoms tennessee pride sausage links, 0.625 lb |
0 | 3.51 | 44 | 158 | 3.51 | 0 | 0 | 1.89 | 14.04 | 1,000 | 8.77 | branded_food | Hebrew National - lean beef salami roll, 12 oz |
0 | 4.72 | 71 | 377 | 14.15 | 0 | 0 | 3.4 | 28.3 | 1,934 | 33.02 | branded_food | Slim Jim - beef stick, 0.75 oz |
18 | 6.68 | 14 | 97 | 2.76 | 0.23 | 0.7 | 0.17 | 1.61 | 323 | 7.14 | branded_food | CAMPBELL'S - slow kettle soup mushroom madeira |
12 | 11.25 | 0 | 46 | 0 | 0 | 0 | 0.25 | 0.42 | 31 | 0 | branded_food | V8 - v-fusion beverage pineapple strawberry |
8 | 7.5 | 4 | 58 | 0 | 0 | 0 | 0.25 | 2.5 | 400 | 1.67 | branded_food | CAMPBELL'S - condensed soup pasta |
17 | 9.58 | 4 | 54 | 0 | 0 | 1.2 | 0.79 | 2.92 | 329 | 0.42 | branded_food | CAMPBELL'S - soup beef barley |
23 | 9.55 | 11 | 84 | 0.68 | 0 | 1.8 | 1.02 | 6.59 | 323 | 2.05 | branded_food | CAMPBELL'S - slow kettle soup steak chili |
8 | 5 | 10 | 38 | 0.21 | 0 | 0.8 | 0.15 | 2.5 | 329 | 1.04 | branded_food | CAMPBELL'S - homestyle soup chicken dumpling |
33 | 40 | 0 | 167 | 0 | 0 | 1.7 | 0.67 | 1.67 | 1,033 | 0 | branded_food | CAMPBELL'S - sauces pineapple |
14 | 6.36 | 11 | 59 | 0.8 | 0 | 0.5 | 0.33 | 3.41 | 318 | 2.27 | branded_food | CAMPBELL'S - slow kettle soup jambalaya |
23 | 7.73 | 10 | 86 | 0.91 | 0 | 1.4 | 0.61 | 4.32 | 323 | 4.32 | branded_food | CAMPBELL'S - slow kettle soup chicken enchilada |
17 | 6.67 | 17 | 100 | 2.5 | 0 | 0 | 0.17 | 1.67 | 1,067 | 6.67 | branded_food | CAMPBELL'S - sauces chicken |
12 | 5.42 | 0 | 25 | 0 | 0 | 0.4 | 0.08 | 0.42 | 46 | 0 | branded_food | V8 - beverage carrot mango |
24 | 21.57 | 6 | 137 | 0.98 | 0 | 0.8 | 0.71 | 5.1 | 310 | 3.53 | branded_food | CAMPBELL'S - sauces pasta sausage |
9 | 6.36 | 6 | 43 | 0.23 | 0 | 0.7 | 0.16 | 2.95 | 323 | 0.68 | branded_food | CAMPBELL'S - slow kettle soup lime chicken |
78 | 14.51 | 27 | 145 | 4.31 | 0.39 | 0.8 | 0.28 | 5.1 | 333 | 7.45 | branded_food | CAMPBELL'S - sauces afredo pasta |
4 | 7.5 | 0 | 29 | 0 | 0 | 0 | 0 | 0 | 8 | 0 | branded_food | V8 - splash beverage citrus |
0 | 10.59 | 41 | 106 | 0.59 | 0 | 0 | 0.85 | 12.94 | 329 | 1.76 | branded_food | SWANSON - meat pork bbq |
17 | 6.25 | 4 | 42 | 0.62 | 0 | 0.4 | 0 | 1.25 | 288 | 1.25 | branded_food | CAMPBELL'S - homestyle soup potato |
31 | 17.65 | 4 | 90 | 0.2 | 0 | 1.6 | 0.71 | 3.53 | 298 | 0.78 | branded_food | CAMPBELL'S - sauces steak beans rice |
52 | 6.67 | 25 | 100 | 3.33 | 0 | 0 | 0 | 1.67 | 683 | 6.67 | branded_food | CAMPBELL'S - sauces beef stroganoff |
0 | 1.18 | 41 | 94 | 0 | 0 | 0 | 0.42 | 16.47 | 365 | 2.35 | branded_food | SWANSON - meat turkey |
98 | 15.69 | 16 | 106 | 1.96 | 0 | 1.6 | 0.56 | 5.49 | 349 | 3.53 | branded_food | CAMPBELL'S - sauces cheese chicken quesadilla |
24 | 14.9 | 27 | 133 | 3.14 | 0.2 | 0.8 | 0.56 | 4.71 | 310 | 6.27 | branded_food | CAMPBELL'S - sauces beef pasta mushroom |
4 | 6.67 | 0 | 25 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | branded_food | V8 - splash beverage cherry lime |
16 | 13.73 | 27 | 106 | 1.96 | 0 | 2 | 0.71 | 3.92 | 310 | 3.92 | branded_food | CAMPBELL'S - sauces chicken dumpling vegetable |
14 | 6.59 | 10 | 57 | 0.91 | 0 | 0.2 | 0.25 | 3.18 | 323 | 2.05 | branded_food | CAMPBELL'S - slow kettle soup thai chicken rice |
23 | 13.18 | 6 | 102 | 1.02 | 0.23 | 3.2 | 1.43 | 5.45 | 323 | 2.95 | branded_food | CAMPBELL'S - slow kettle soup beef chili |
23 | 10.91 | 10 | 82 | 0.57 | 0 | 3 | 1.02 | 5.68 | 323 | 1.59 | branded_food | CAMPBELL'S - slow kettle soup white chicken |
0 | 6.67 | 0 | 33 | 0 | 0 | 3.3 | 0 | 0 | 833 | 0 | branded_food | PACE - dips medium picante |
33 | 8.33 | 0 | 58 | 0 | 0 | 1.7 | 1.2 | 1.67 | 1,067 | 1.67 | branded_food | PACE - dips taco sauce |
0 | 6.67 | 0 | 33 | 0 | 0 | 0 | 0 | 0 | 433 | 0 | branded_food | PACE - dips salsa |
83 | 11.67 | 8 | 100 | 1.67 | 0 | 1.7 | 0.5 | 3.33 | 1,067 | 5 | branded_food | CAMPBELL'S - sauces buffalo chicken |
133 | 6.67 | 8 | 333 | 6.67 | 0 | 1.7 | 0.6 | 5 | 983 | 31.67 | branded_food | PREGO - sauces basil pesto |
33 | 6.67 | 0 | 75 | 0.83 | 0 | 2.5 | 0.6 | 1.67 | 358 | 4.17 | branded_food | PREGO - sauces marinara |
50 | 9.17 | 0 | 67 | 0 | 0 | 2.5 | 0.6 | 1.67 | 358 | 2.5 | branded_food | PREGO - sauces garlic |
8 | 7.5 | 4 | 58 | 0.42 | 0 | 0.8 | 0.17 | 2.5 | 400 | 1.67 | branded_food | CAMPBELL'S - soup discontinued |
7 | 2.62 | 3 | 20 | 0.16 | 0 | 0.3 | 0.16 | 0.98 | 321 | 0.66 | branded_food | CAMPBELL'S - soup on the go soup chicken & pasta |
0 | 0 | 71 | 250 | 7.14 | 0 | 0 | 2.57 | 14.29 | 1,000 | 21.43 | branded_food | Honeysuckle White - hsw smoked turkey bacon |
18 | 0 | 89 | 214 | 4.46 | 0 | 0 | 0.96 | 18.75 | 103 | 15.18 | branded_food | HONEYSUCKLE WHITE - fresh ground turkey 85% |
24 | 3.57 | 54 | 155 | 1.79 | 0 | 0 | 0.86 | 20.24 | 1,107 | 7.14 | branded_food | HONEYSUCKLE WHITE - hickory smoked turkey breast |
0 | 52.38 | 0 | 476 | 2.38 | 0 | 19 | 3.43 | 23.81 | 810 | 19.05 | branded_food | Kala Beautiful Beans - simply peppered crisps 0.75 oz |
0 | 52.38 | 0 | 476 | 2.38 | 0 | 19 | 5.14 | 23.81 | 619 | 21.43 | branded_food | Kala Beautiful Beans - tropical curry crisps 0.75 oz |
0 | 52.38 | 0 | 476 | 1.9 | 0 | 19 | 3.43 | 23.81 | 810 | 19.05 | branded_food | Kala Beautiful Beans - sea salt and vinegar crunch 0.75 oz |
67 | 50 | 0 | 467 | 1.67 | 0 | 16.7 | 3.6 | 23.33 | 800 | 20 | branded_food | Kala Beautiful Beans - sea salt and vinegar crunch 5 oz. |
33 | 14.97 | 0 | 84 | 0.09 | 0 | 3.6 | 1.24 | 4.76 | 412 | 0.56 | branded_food | BUSH'S BEST - bush's chili beans pinto beans in a hot chili sauce 16 oz |
31 | 19.23 | 0 | 100 | 0 | 0 | 4.6 | 1.38 | 3.85 | 338 | 0 | branded_food | SHOWBOAT - vegetarian beans in tomato sauce 112 oz |
46 | 26.92 | 0 | 131 | 0 | 0 | 4.6 | 0.55 | 4.62 | 423 | 0.38 | branded_food | BUSH'S BEST - bush's southern pit barbecue grillin' beans 8.6 oz |
46 | 25.38 | 0 | 123 | 0 | 0 | 6.2 | 1.38 | 6.15 | 331 | 0.38 | branded_food | BUSH'S BEST - bush's bourbon and brown sugar grillin' beans 8.6 oz |
31 | 14.62 | 0 | 85 | 0 | 0 | 5.4 | 1.38 | 4.62 | 346 | 0.77 | branded_food | BUSH'S BEST - bush's pinto beans with pork 15.5 oz |
62 | 16.92 | 0 | 92 | 0 | 0 | 5.4 | 1.38 | 5.38 | 200 | 0 | branded_food | BUSH'S BEST - bush's light red kidney beans 27 oz |
31 | 13.85 | 0 | 69 | 0 | 0 | 5.4 | 1.11 | 3.85 | 362 | 0 | branded_food | BUSH'S BEST - bush's mixed beans 16 oz |
37 | 17.15 | 0 | 92 | 0.09 | 0 | 4 | 1.59 | 5.44 | 355 | 0.51 | branded_food | BUSH'S BEST - bush's taco fiesta black beans 108 oz |
43 | 13.36 | 0 | 74 | 0.04 | 0 | 3.4 | 1.22 | 4.91 | 365 | 0.33 | branded_food | BUSH'S BEST - bush's white beans 16 oz |
31 | 16.92 | 0 | 92 | 0.38 | 0 | 3.8 | 1.38 | 4.62 | 462 | 1.15 | branded_food | SHOWBOAT - pork & bean 8 oz |
67 | 50 | 0 | 467 | 1.67 | 0 | 20 | 3.6 | 23.33 | 800 | 20 | branded_food | Kala Beautiful Beans - simply peppered bean crisps 5 oz. |
67 | 50 | 0 | 467 | 1.67 | 0 | 20 | 4.8 | 23.33 | 600 | 20 | branded_food | Kala Beautiful Beans - bean crisps (tropical curry) 5 oz. |
35 | 68.14 | 4 | 389 | 5.31 | 0 | 2.7 | 2.39 | 4.42 | 469 | 11.5 | branded_food | BETTY CROCKER - bty crk cake mix hersheys trpl lyr choc hot fudge |
0 | 82.61 | 0 | 348 | 0 | 0 | 0 | 0 | 0 | 130 | 0 | branded_food | BETTY CROCKER - bty crk star wars frt flvrd sncks assorted frt |
8 | 4.17 | 0 | 19 | 0 | 0 | 0.8 | 0.3 | 0.83 | 262 | 0 | branded_food | Red Gold - 46oz. tomato juice |
0 | 86.67 | 0 | 378 | 0 | 0 | 0 | 1.6 | 4.44 | 489 | 2.22 | branded_food | BETTY CROCKER - bty crk btys original recipe scratch cake mix gldn yellow |
44 | 82.22 | 0 | 378 | 0 | 0 | 2.2 | 6 | 4.44 | 600 | 3.33 | branded_food | BETTY CROCKER - bty crk btys original recipe scratch cake mix choc joy |
44 | 84.44 | 0 | 378 | 0 | 0 | 2.2 | 3.2 | 4.44 | 600 | 3.33 | branded_food | BETTY CROCKER - bty crk btys original recipe scratch cake mix german choc delight |
357 | 78.57 | 0 | 393 | 0 | 0 | 7.1 | 16.07 | 7.14 | 393 | 5.36 | branded_food | GENERAL MILLS - gmills apple cinn cheerios sweetened whl grn oat cereal family sz |
323 | 80.65 | 0 | 419 | 1.61 | 0 | 6.5 | 14.52 | 3.23 | 581 | 9.68 | branded_food | GENERAL MILLS - gmills cinn tst crnch sweetened whl wht rice cereal gnt sz |
357 | 78.57 | 0 | 393 | 0 | 0 | 7.1 | 16.07 | 7.14 | 571 | 5.36 | branded_food | GENERAL MILLS - gmills hny nut cheerios sweetened whl grn oat cereal gnt sz |
357 | 71.43 | 0 | 357 | 1.79 | 0 | 10.7 | 28.93 | 10.71 | 500 | 7.14 | branded_food | GENERAL MILLS - cheerios cereal, family size |
370 | 77.78 | 0 | 370 | 0 | 0 | 7.4 | 16.67 | 7.41 | 463 | 5.56 | branded_food | GENERAL MILLS - gmills frty cheerios sweetened whl grn oat cereal |
357 | 78.57 | 0 | 393 | 0 | 0 | 7.1 | 16.07 | 7.14 | 571 | 5.36 | branded_food | GENERAL MILLS - gmills hny nut cheerios sweetened whl grn oat cereal |
357 | 78.57 | 0 | 393 | 0 | 0 | 7.1 | 16.07 | 7.14 | 393 | 5.36 | branded_food | GENERAL MILLS - gmills apple cinn cheerios sweetened whl grn oat cereal |
89 | 55.56 | 0 | 422 | 3.33 | 0 | 6.7 | 2.89 | 8.89 | 67 | 20 | branded_food | Larabar - snickerdoodle fruit & nut bar |
0 | 67.5 | 0 | 375 | 3.75 | 0 | 12.5 | 0.9 | 5 | 238 | 12.5 | branded_food | FIBER ONE - f1 strsl bar strwbry |
0 | 65 | 0 | 375 | 3.75 | 0 | 12.5 | 0.9 | 5 | 225 | 12.5 | branded_food | FIBER ONE - f1 strsl bar blbry |
0 | 82.61 | 0 | 348 | 0 | 0 | 0 | 0 | 0 | 130 | 0 | branded_food | BETTY CROCKER - bty crk universal frt flvrd sncks assorted frt |
0 | 3.69 | 6 | 33 | 0.2 | 0 | 0 | 0 | 2.46 | 279 | 0.82 | branded_food | ANNIES HOMEGROWN ORGANIC - annie's homegrown organic star pasta & chicken soup |
0 | 80 | 0 | 400 | 0 | 0 | 0 | 0 | 0 | 400 | 5 | branded_food | Fruit Roll-Ups - mini rolls wildberry punch 36ct |
40 | 52 | 0 | 240 | 0 | 0 | 4 | 1.44 | 6 | 560 | 1 | branded_food | THE GOOD TABLE - frzr to plate rice sauce sthwstrn |
48 | 69.05 | 0 | 452 | 2.38 | 0 | 7.1 | 2.57 | 7.14 | 298 | 16.67 | branded_food | NATURE VALLEY - nat vly crnchy gran bars pumpkin spice |
0 | 85.19 | 0 | 407 | 3.7 | 0 | 3.7 | 1.33 | 3.7 | 370 | 5.56 | branded_food | BETTY CROCKER - bty crk prem dessert bar mix hersheys smores |
357 | 78.57 | 0 | 393 | 0 | 0 | 7.1 | 16.07 | 7.14 | 482 | 5.36 | branded_food | GENERAL MILLS - gmills very bry cheerios sweetened whl grn oat cereal |
323 | 77.42 | 0 | 387 | 0 | 0 | 6.5 | 14.52 | 9.68 | 387 | 4.84 | branded_food | GENERAL MILLS - gmills hny nut chrs medley crnch sweetened oat wheat cereal |
0 | 72 | 0 | 360 | 6 | 0 | 20 | 0 | 4 | 340 | 10 | branded_food | FIBER ONE - f1 bkd bars pumpkin bar |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
π₯ USDA FoodData Central β Nutrition EDA
Overview
This project presents an end-to-end Exploratory Data Analysis (EDA) of nutritional data from the USDA FoodData Central database. The goal is to uncover patterns in food nutrition, compare food categories, and explore relationships between key nutritional features.
- Source: omid5/usda-fdc-foods-cleaned
- Original size: 501,887 rows Γ 22 columns
- Final clean size: 345,226 rows Γ 11 numeric features
- Target Variable:
data_type(branded_food / sr_legacy_food)
Features
| Column | Description |
|---|---|
| Energy | Calories per 100g (kcal) |
| Protein | Protein content (g) |
| Total lipid (fat) | Total fat (g) |
| Fatty acids, total saturated | Saturated fat (g) |
| Fatty acids, total trans | Trans fat (g) |
| Carbohydrate, by difference | Carbohydrates (g) |
| Fiber, total dietary | Dietary fiber (g) |
| Cholesterol | Cholesterol (mg) |
| Sodium, Na | Sodium (mg) |
| Calcium, Ca | Calcium (mg) |
| Iron, Fe | Iron (mg) |
Data Cleaning
Steps performed:
- Dropped irrelevant non-numeric columns (fdc_id, ingredients, serving info)
- Checked for duplicates β 0 found
- Dropped columns with more than 50% missing values (Caffeine, Vitamin D, Potassium)
- Dropped remaining rows with any missing values
- Removed foundation_food category (only 1 row)
- Final clean dataset: 345,226 rows Γ 11 numeric columns
Outlier Detection
- Used box plots and the IQR method across all 11 numeric columns
- Outliers found in every column β highest in Cholesterol (11.53%), Calcium (7.59%), Fiber (6.83%)
- Decision: retained all outliers β in food data, extreme values are completely legitimate (e.g., pure oil = very high fat, table salt = very high sodium)
Research Question
Can we predict the food category (branded vs. SR legacy) based on its nutritional profile?
Visualizations & Key Findings
Q1: What is the average calorie content by food category?
Finding: SR Legacy foods average 518.6 kcal vs. 291.6 kcal for branded foods. SR Legacy includes calorie-dense whole foods like oils and nuts, while branded foods include a much wider variety including low-calorie options like diet drinks and salads.
Q2: How is protein content distributed across food categories?
Finding: SR Legacy foods show a wider protein distribution (median ~10g, range 0β48g) compared to branded foods (median ~6g, range 0β23g). SR Legacy includes more protein-dense whole foods like meats, fish, and legumes.
Q3: Is there a relationship between fat and calorie content?
Finding: Clear positive relationship between fat and calories β as fat increases, calories increase. Fat contains 9 kcal/g vs. 4 kcal/g for protein and carbohydrates. Both food categories follow the same trend.
Q4: Which nutritional values are most correlated with each other?
Key correlations:
- Total Fat β Energy: 0.72 (strongest)
- Saturated Fat β Total Fat: 0.70
- Carbohydrate β Energy: 0.66
- Saturated Fat β Energy: 0.50
- Fiber β Carbohydrate: 0.38
- Sodium β everything: ~0.00 (no correlation)
Summary & Conclusions
- SR Legacy foods are significantly more caloric than branded foods (518 vs. 291 kcal)
- Fat content is the strongest predictor of calories (correlation = 0.72)
- SR Legacy foods show higher and wider protein distribution
- Sodium is completely independent of all other nutritional features
- Nutritional profiles differ meaningfully between commercial branded products and USDA reference foods, supporting our research question
Tools & Technologies
- Python (Pandas, NumPy)
- Data Visualization (Matplotlib, Seaborn)
- Google Colab
- HuggingFace Datasets
Author
Amit Ben-Avraham
- Downloads last month
- 37



