Skip to content

Visualize nutrition info of foods from USDA FNDDS 2019-2020 database

Notifications You must be signed in to change notification settings

sukiboo/nutrition_info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nutrition Info

A toy project to help me make more informed dietary choices.

Currently working with FNDDS 2019-2020 dataset provided by the USDA. The file structure is the following:

  • process_nutrition_data.py reads FoodData_Central_survey_food_json_2022-10-28.json and parses it into the nice dataframe nutrition_info.csv
  • visualize_nutrition_data takes info from nutrition_info.csv and visualizes it (see examples below)
  • main.py visualizes the given food items, represented by their FDC ID, which can be found on the Survey Foods (FNDDS) tab at https://fdc.nal.usda.gov/fdc-app.html

Future Work

This code is a bit rough and I might clean it up at if I ever have some free time (but since it's a hobby project, I wouldn't expect it to happen any time soon 🥲). The main things to be done:

  1. Pick nicer colors
  2. Extend code functionality
  3. Improve file organization

Examples

fruits vegetables sides meats

About

Visualize nutrition info of foods from USDA FNDDS 2019-2020 database

Topics

Resources

Stars

Watchers

Forks

Languages