Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

More Books

Students also viewed these Databases questions

Question

How can I improve my sensitivity to diversity issues?

Answered: 1 week ago

Question

Discuss five types of employee training.

Answered: 1 week ago

Question

Identify the four federally mandated employee benefits.

Answered: 1 week ago