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

Follow the article to answer the question. 1) TARGET: Who

  Follow the article to answer the question.  1) TARGET:  Who is the Target Market? Be specific and explain why this is a good fit. You can speak about demographics, psychographics, EQ profiles or a mix of all three. It is very important for the reader to understand who you are

Dubai’s/UAE traffic and road safety.

-summarize two journal articles. 1- https://www.tandfonline.com/doi/full/10.1080/17457300.2012.745575?scroll=top&needAccess=true 2-http://www.scielo.br/scielo.php?pid=S2238-10312013000200021&script=sci_arttext please make sure you view the full journal article Both summaries must INCLUDE 2 citations at least. INCLUDE in both summaries -Objective or topic of the article • A methodology of how they tested the objective • Results • Conclusion Critique #DubaisUAE #traffic

Explain the Human Capital Theory and how it relates to education.

1. Discuss some of the historical roots of discrimination and how the continued discrimination faced by certain groups in society affects Canada. 2. Explain the Human Capital Theory and how it relates to education. 3. What is income distribution and in what ways does it affect Canadian society, discuss how

The Assessment Task This assignment is a theoretically informed individual

   The Assessment Task This assignment is a theoretically informed individual 3,500-word report to address the identified challenges outline in your poster presentation. This report should develop a critical theoretical discussion using up to date credible sources to debate the different options for leaders/managers to deal with your outlined specific

Many ethical violations in research have come to the public’s

  Many ethical violations in research have come to the public’s attention, such as drug side effects being downplayed by pharmaceutical companies, testing being done on animals or on humans without approval, having inaccurate findings published that did not represent the validity of tests or research and development (R&D), and

4-6 Pages Forensic entomology (FE) is the study of insects

4-6 Pages  Forensic entomology (FE) is the study of insects as it relates to criminal or civil investigations. In criminal cases, it is used to determine postmortem interval. In civil cases, FE may be used because of the introduction of insects into a consumer product or infestation of a structure. A blowfly

This assignment started and was discussed in class in small

This assignment started and was discussed in class in small groups. Based on the clinical case provided in class, develop a teaching/coaching plan that includes the following information. The submission is an individual assignment. You may use any books or other resources or references to complete this assignment. Use APA

each question around 100-200 words would do – 1.Please argue

each question around 100-200 words would do – 1.Please argue from a utilitarian and an ecofeminist perspective, what the right thing to do is in this case. Specifically, should DDT be banned worldwide because of its long- range ecological damage or should economically challenged (poor) countries racked by malaria where

The wisdom of depending on International Medical School Graduates (IMGs)

   The wisdom of depending on International Medical School Graduates (IMGs) to fill gaps in physician supply, while US medical schools hold class size constant, is questionable. In addition, the aging of the physician workforce, the decreasing hours worked by both physicians in practice and physicians in residency, and a

Disorders of this system range

While the male and female reproductive systems are unique to each sex, they share a common function—reproduction. Disorders of this system range from delayed development to structural and functional abnormalities. Since many reproductive disorders not only result in physiological consequences but also psychological consequences such as embarrassment, guilt, or profound

Topic to write on: environmental health, the environmental factors that

Topic to write on:  environmental health, the environmental factors that impact health, and your role with improving/ eliminating environmental barriers to health. Use the following organization: Title page: Environmental Health and Health Effects on Environmental Change Introduction: One paragraph (minimum of 4 to 5 sentences). Synopsis: (include all pertinent information obtained in this lesson (Lesson 2). Sub-Titles: Environmental Factors that Impact Health My

The final hurdle is addressing the organization’s concerns about cloud

  The final hurdle is addressing the organization’s concerns about cloud security. GTR leadership has requested that you present a report to address security and what AWS offers to ensure safe and secure cloud computing, storage, and access. Write 2- to 3-page security design and approach brief in which you:

Define patient-centeredness in the context

Minimum of 500 words with at least 3 or more peer review reference in 6th edition apa style. The emergency room uses a survey company called press ganey to ubtain patient response to their emergency room visit. with all the questioned surveyed the two that were very concerning was 1.

For week 6, answer all of the following questions in

For week 6, answer all of the following questions in an original post of 5-7 sentences.  Also, reply to a classmate with 4-5 sentences of thoughtful details for up to 30 discussion points this week.      Describe a time when a picture, drawing or other visual made a significant impact in a business presentation you attended.  Give a brief summary of the presentation, including the

Topic: My father used to tell me that “locks keep

Topic: My father used to tell me that “locks keep honest people honest”. What do you think he meant by that? Is there any such thing as total security? Post should be between 300-400 words. Posts must contain a properly formatted in-text citation and scholarly reference. Post is required before