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,

 IN PYTHON A. Create a DataFrame from the following dict. Edit

Atta data_dict = {'soda':['coke', 'diet coke', 'sprite', 'pepsi', 'mug', 'mt. dew'], 'cals':

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!