Question: IN PYTHON A. Create a DataFrame from the following dict. Edit Atta data_dict = {'soda':['coke', 'diet coke', 'sprite', 'pepsi', 'mug', 'mt. dew'], 'cals': [140, 1,

![Atta data_dict = {'soda':['coke', 'diet coke', 'sprite', 'pepsi', 'mug', 'mt. dew'], 'cals':](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66efa708719ae_89666efa7081d1c5.jpg)
IN PYTHON
A. Create a DataFrame from the following dict. Edit Atta data_dict = {'soda':['coke', 'diet coke', 'sprite', 'pepsi', 'mug', 'mt. dew'], 'cals': [140, 1, 90, 150, 130, 170], 'sodium': [45, 40, 65, 30, 65, 60], 'corp': ['coca cola', 'coca cola', 'coca cola', 'pepsico', 'pepsico', 'pepsico']} Edit Atta data = pd. DataFrame (data_dict) data 1: G. Print out the average sodium for pepsico products that have more than 135 calories. H. Print out the number of pepsico products with sodium above 60 mg
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
