Note: Read the resources posted in week 12 folder and the chapter 7 of the ebook in the week 12 folder (Python for Data Analysis).

Note: Read the resources posted in week 12 folder and the chapter 7 of the ebook in the week 12 folder (Python for Data Analysis).

Solve the following problems 1 to 3, work with the Nutrition_subset data set. The data set contains the weight in grams along with the amount of saturated fat and the amount of cholesterol for a set of 961 foods. Use Python.

1. The elements in the data set are food items of various sizes, ranging from a teaspoon of cinnamon to an entire carrot cake.

a. Sort the data set by the saturated fat (saturated_fat) and produce a listing of the five food items highest in saturated fat.

b. Comment on the validity of comparing food items of different sizes.

2. Derive a new variable, saturated_fat_per_gram, by dividing the amount of saturated fat by the weight in grams.

a. Sort the data set by saturated_fat_per_gram and produce a listing of the five food items highest in saturated fat per gram.

b. Which food has the most saturated fat per gram?

3.Derive a new variable, cholesterol_per_gram.

a. Sort the data set by cholesterol_per_gram and produce a listing of the five food items highest in cholesterol fat per gram.

b. Which food has the most cholesterol fat per gram?

Solve the following problems 4 to 6, work with the adult_ch3_training data set. The response is whether income exceeds $50,000. Use Python.

4. Add a record index field to the data set

5. Determine whether any outliers exist for the education field.

6. Do the following for the age field. a. Standardize the variable. b. Identify how many outliers there are and identify the most extreme outlier.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

CHOOSE ONE OF THE QUESTIONS BELOW & POST TO THE

  CHOOSE ONE OF THE QUESTIONS BELOW & POST TO THE DISCUSSION BOARD. REFER TO THE GRADING RUBRIC ON THE COURSE SYLLABUS. REMEMBER TO CITE YOUR POST. CHAPTERS 5-8 1. Identify & explain two types of services that are available for people who are mentally retarded. 2.  Identify & explain two types

Develop one set of interview questions to gather information about the role of the provider in the community and the health issues faced by the chosen community.

My community is Bakersfield, California I was thinking of interviewing in regards to lack of mental health facilities and planning locally.   This is a Collaborative Learning Community assignment. This assignment consists of both an interview and a PowerPoint (PPT) presentation. Assessment/Interview Select a community of interest. It is important that the

The Federal Budget and how it gets made is a

The Federal Budget and how it gets made is a complex and lengthy  process that has important implications for Federal, State and Local agencies. Funding for each agency is going to affect that  agency’s budget. Likewise, federal funding for social programs,  education, and other programs such as disaster relief affects

This week you will build on the outline you created

  This week you will build on the outline you created in Week 2. Think of this doc draft as an abbreviated version of your Capstone Pae ; it does not need to be a complete Capstone doc . Consider your rough draft a “mini-Capstone Par” that will prepare you

You are chief compliance officer of starbucks and must write supplier

 ***Company is Starbucks*** *Summarize your chosen company’s Supplier Code of Conduct information *In your own words, explain how each aspect of your Supplier Code of Conduct is committed to ethical business practices and society social responsibility. *Discuss your company’ s stance on each of the following areas: a. Empowering Workers

For this task, prepare a PowerPoint presentation in which you

For this task, prepare a PowerPoint presentation in which you address the following theorists and their perspectives on personality. The audience for this presentation is an undergraduate class studying personality theories. Theorists: George Kelly Julian Rotter Albert Bandura Carl Rogers In your presentation, you will need to provide an overview

  Unit outcomes addressed in this Assignment: Demonstrate an understanding of the

  Unit outcomes addressed in this Assignment: Demonstrate an understanding of the relevance of economic concepts within the healthcare sector. Explain health care financing and economic principles as they apply to healthcare policymaking. Develop an intervention of an objective to address the health problem. Course Outcome assessed/addressed in this Assignment:

GUIDELINES FOR THE FIELD EXPERIENCE

GUIDELINES FOR THE FIELD EXPERIENCE REQUIREMENT: You must “attend” 1 policy event, at least approximately 1 hour in length. You must “attend” 1 policy event, at least approximately 1 hour in length. The event may be online and it must have a health policy focus. Online health policy events/ webinars will

OUTLOOK TECH SUPPORT number I8O5.738.61OO personal information manager, consists of

   OUTLOOK TECH SUPPORT number I8O5.738.61OO personal information manager, consists of many elements such as calendar, contact manager, task manager, notes, notes, web browsing and mail application. Among all these features, OUTLOOK is generally considered as an email application. Whether you need OUTLOOK for personal or business use, all your

A scholarly paper addressing a healthcare delivery situation

Students will develop a scholarly paper addressing a healthcare delivery situation in need of change within the practice setting. The paper will address how the master’s prepared nurse can facilitate the change process as a change agent. Assignment Criteria: 1. Discuss the essential elements needed by a master’s prepared nurse

Understanding evidence-based practice

Kimberly Morris    1 posts   Re: Topic 9 DQ 2  One potential barrier that may prevent my evidence-based practice proposal from continuing its enthusiasm is the fact that the community in which I will be presenting may lose interest in the topic of lead. Because this topic has been brought to

Importance of Identification of theory

Importance of Identification of theory Early knowledge consisted of loosely connected clusters of concepts. Later knowledge developed interrelated statements connecting the concepts. Advanced theory provided a knowledge base for intervention strategies that clusters of concepts could not. Identification of theory is important to understand the characteristics of theory structures. A

Instructions For this assignment, you will define the research objectives

Instructions For this assignment, you will define the research objectives and develop the research questions and hypotheses to set the stage for the Sun Coast Remediation research project.You will utilize this  Unit II template to complete the Unit II assignment.Be sure to include the following sections in your submission, and