Question: Q1: Assuming the following array grades: import numpy as no grades = np.array([[87,96,70], [100,87,90],[94,77,90],[100,81,82]) Which of the following statements a), b) or c) is false?

Q1: Assuming the following array grades: import numpy as no grades = np.array([[87,96,70], [100,87,90],[94,77,90],[100,81,82]) Which of the following statements a), b) or c) is false?
A) the following code selects an element in grades by specifying a tulle contains the elements row and column indices in square brackets: grades [0, 1]
B) to select a single row, specify only one index in square brackets, as in grades[1]
C) To select multiple sequential rows, use slice notation as in grades [0:2] and to select multiple non-sequential rows use a list tow indices as in grades [[1,3]]
D) All of the above
Q2: which of the following statements a) b) or c) is false?
A) by default a Series has integer indexes numbered sequentially from 0
B) the following code creates a Series of student grades from a list of integers: import pandas as pd grades=pd.Series([87, 100, 94])
C) The Series argument in Part(b)s code also may be a typos, a dictionary an array another Series or a single value.
D) all of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!