Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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': [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 mgStep 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