Question
Find the menu of your favorite restaurant or coffee shop, you can choose more than one. Create a dictionary containing the information of your favorite
Find the menu of your favorite restaurant or coffee shop, you can choose more than one.
Create a dictionary containing the information of your favorite foods and drinks (at least 10). This dictionary should contain the type(food/drink), name of item, price, and calories.
Convert your dictionary to a pandas DataFrame.
With one line of code, create a new column named (calories_over_25) that determines whether an item has more than 25 calories. This column should contain the values True or False for each item in your data.
Print your DataFrame to the screen.
Export your DataFrame as a csv file.
Please submit 2 files:
The exported csv file.
Your code as a .ipynb file.
(You can do this within the google colab notebook by going to file>download>download .ipynb)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started