subject

In 2]: 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, 22.06.2019 12:30
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
question
Computers and Technology, 25.06.2019 01:00
Why is outfitting a workplace with video games in a technology development company consiered a strategic use of money
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
What phrase indicates someone has knowledge and understanding of computer,internet,mobile devices and related technologies?
Answers: 1
question
Computers and Technology, 25.06.2019 01:20
Jason typically uses the internet to buy various items. it the total cost of all of the items ordered, at one time, is $250 or more, then the shipping and handling is free, otherwise the shipping and handling is $15 per item. design an algorithm that prompts jason to enter the number of items ordered and the price of each item. (remember cost = number of items order times price) the algorithm then outputs the total billing amount including shipping and handling. your algorithm must use a loop (repetition structure) to get the number and price of each item. write this in algorithm format not program code format.
Answers: 2
You know the right answer?
In 2]: Import necessary libraries import pandas as pd import numpy as np In [3]: * * #** GRADED # (a...
Questions
Questions on the website: 13722363