Question: Import numpy for use in the program Before starting, download the files chicken _ weight.csv and chicken _ data.csv . The file chicken _ weight.csv
Import numpy for use in the program
Before starting, download the files chickenweight.csv and
chickendata.csv The file chickenweight.csv is a comma delimited file
that stores the weights of a set of chickens and time, which is the time
in days since their birth. The file chickendata.csv is a
commadelimited file that stores data for the same set of chickens in
the same order. The file chickendata.csv includes the columns: chick,
an identifier for each chicken and diet value between
Read the data in the commadelimited file, chickenweight.csv into a
numpy array, weights
Read the data in the commadelimited file, chickendata.csv into a numpy
array, data
Merge the numpy arrays, weights and data into a twodimensional numpy
array, chickendata. The first column should store the weights, and the
remaining columns should store the time in days from birth, the
chicken identifier and the chicken diet
Display the mean weight and time for all chickens.
Display the data for the chick with the id
Calculate and display the maximum chicken weight.
Find and display the age in days of the chickens with the maximum
weight.
Extract an array containing the weight, time and id of all chickens with
diet and save to a file, dietfourchickens.csv
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
