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

I need exercise 4 and 5 ASAP lab09/noccalula-falls.bmp lab09/jaguar.jpg lab09/cheetah-family.jpg lab09/secret04.txt Reintroduction of

I need exercise 4 and 5 ASAP lab09/noccalula-falls.bmp lab09/jaguar.jpg lab09/cheetah-family.jpg lab09/secret04.txt Reintroduction of the cheetah in India involves the re-establishment of a population of cheetahs into areas where they had previously existed but were hunted into extinction during and after the Mughal Period, largely by Rajput and Maratha Indian royalty

Turnitin Turnitin enabledThis assignment will be submitted to Turnitin. Instructions Body paragraphs (sometimes called “discussion sections”) are

Turnitin™ Turnitin™ enabledThis assignment will be submitted to Turnitin™. Instructions Body paragraphs (sometimes called “discussion sections”) are the parts of your essay that aren’t the intro or conclusion. Each of these paragraphs will have: a leading topic sentence that states the paragraph’s focus, evidence (quotes, examples, or research), and analysis

VIDHI PATEL

VIDHI PATEL 04.10.2024 MACHINE LEARNING : MID-TERM PROJECT 2 MULTICLASS CLASSIFICATION DATASET DESCRIPTION The wine quality dataset is intriguing due to its diverse variables, including chemical properties like acidity and pH, which affect wine quality. It offers insights into the intricate relationship between these factors and perceived quality, essential for