Comparing the average calories in four perceived unhealthy fastfood restaurants (McDonalds, Burger King, Taco Bell, and Wendys) to the average calories of a perceived healthy fast casual restaurant (Panera Bread). Each menu's nutrition information was obtained, and this project will focus primarily on the menu's calories and macronutrients (fats, carbohydrates, and protein) percentages. I have acquired the number of items on each menu, the highest calorie item as well as the lowest calorie item, the average calories of each menu, and the total percentage of macronutrients. Analysis created to aid in the question: Is the perceived healthy restaurant really the healthier option?
- Clone the repository by typing the following:
git clone https://github.com/GraceEnsign/Fastfood_Menu_Analysis
- Run the following to install required packages:
pip install -r requirements.txt
- Open the Menu_Analysis.ipynb once in the main directory with Jupyter Notebook, or open with editor.
Python 3.9.7
Jupyter Notebook
Matplotlib 3.4.2
Pandas 1.3.4
NumPy 1.20.3
Acquired five dataframes containing the nutrition information for the menus of McDonalds, Burger King, Taco Bell, Wendys, and Panera Bread. All five dataframes are a csv file.
McDonalds
Burger King
Taco Bell
Wendys
Panera Bread
- Read Data In- Read in data from a local csv. (Cell 2)
- Manipulate and Clean Data- Used Pandas and NumPy to remove null values, organize columns, and assign variables. (Cells 3-6)
- Analyze Data- Created custom functions to operate data. (Cells 7-10, 12)
- Visualize Data- Created two plots with Matplotlib. (Cells 11, 13-14)
- Interpret Data- Added markdown cells in Jupyter Notebook. (Between each cell throughout project)