subject

Import necessary libraries import pandas as pd import numpy as np In [3]: * * #** GRADED # (a) Determine the shape, number of dimensions and type of #elements in the numpy array arr # (b) Determine the sum of elements in arr # (c) Determine the mean of elements in arr * (d) Create an array of the same shape as arr but filled with zeros # (e) Create an array of the same shape as arr but filled with ones # (f) Create an array of the same shape as arr but where all elements are squared values # (g) Create an array result of shape 3*3 resulting from multiplication of arr with transpose(c arr = np. arange (15).reshape(3, 5) * * In [4]: #** GRADED # The following piece of code creates a DataFrame # (a) Determine the shape of the dataframe # (b) Print out all the columns of the dataframe # (C) Print the 3rd element of the dataframe # (d) Find the average of 'petal_width' where species is 'virginica' # (e) Find the maximum of 'sepal_width' where species is 'setosa' # (f): What is the average value of sepal_length # (g): What is the maximum value of sepal_width # (h): What is the minimum value of petal_width import pandas as pd df = pd. read_csv('https://raw. githubusercontent. com/mwaskom/seaborn-data/master/iri s. csv') df. head(10) #prints the first 10 rows

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 11:00
Why is it uncommon for users to perform searches directly in database tables? a.)users are discouraged from interacting directly with tables because they might confuse tables with spreadsheets. b.) users are discouraged from interacting directly with tables because this may result in unintended changes to source data. c.)users do not have the technical skills required to perform searches directly in database tables. d.)users do not have the permissions required to perform searches directly in database tables.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Python. primary u.s. interstate highways are numbered 1-99. odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. thus, the 405 services the 5, and the 290 services the 90. given a highway number, indicate whether it is a primary or auxiliary highway. if auxiliary, indicate what primary highway it serves. also indicate if the (primary) highway runs north/south or east/west.
Answers: 1
question
Computers and Technology, 25.06.2019 03:00
Between 1932 and 1938, chester carlson developed a process that enabled a "picture" of a document to be taken and then have it reproduced on another
Answers: 1
question
Computers and Technology, 25.06.2019 09:50
Part a: data processing given a data file, find the max, min, and average values of columns. also, create an addition column that is based on the other columns. there will be no error checking required for this lab. you are provided with a data file named (surprise! ) data.txt. data is arranged in columns where each item of data is twelve columns wide (so it is easy to extract data items using slicing): name height(m) weight(kg) joe 1.82 72.57 mary 1.60 63.50 dion 1.90 90.71 kayla 1.72 66.31 jose 1.78 70.23 sofia 1.63 65.12 erik 1.98 92.21 sara 1.57 65.77 your task is read the file data.txt and calculate the max, min, and average of the height and weight columns and to add an additional column that has the bmi calculated based on each height and weight. your output will look like this (and needs to be formatted like this). to match the testing on mimir here is the format string: "{: < 12s}{: < 12.2f}{: < 12.2f}{: < 12.2f}"
Answers: 3
You know the right answer?
Import necessary libraries import pandas as pd import numpy as np In [3]: * * #** GRADED # (a) Deter...
Questions
question
Mathematics, 17.04.2020 22:55
question
Mathematics, 17.04.2020 22:55
question
History, 17.04.2020 22:56
Questions on the website: 13722361