adplus-dvertising
frame-decoration

Question

Which of the following returns an array of ones with the same shape and type as a given array?

a.

all_like

b.

ones_like

c.

one_alike

d.

all of the mentioned

Answer: (b).ones_like

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following returns an array of ones with the same shape and type as a given array?

Similar Questions

Discover Related MCQs

Q. Which of the following attribute should be used while checking for type combination input and output?

Q. Point out the wrong statement.

Q. Which of the following sets the size of the buffer used in ufuncs?

Q. ndarray.dataitemSize is the buffer containing the actual elements of the array.

Q. Which of the following function can be used to combine different vectors so as to obtain the result for each n-uplet?

Q. Which of the following method creates a new array object that looks at the same data?

Q. ndarray is also known as the alias array.

Q. Which of the following function stacks 1D arrays as columns into a 2D array?

Q. Point out the correct statement.

Q. To create sequences of numbers, NumPy provides a function __________ analogous to range that returns arrays instead of lists.

Q. The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.

Q. Point out the wrong statement.

Q. Which of the following is contained in NumPy library?

Q. gvisAnnotationChart charts are interactive time series line charts that support annotations.

Q. Which of the following is used for creating tree maps?

Q. The actual chart of gvisBarChart is rendered by the web browser using _________ or VML.

Q. gvisAnnotatedTimeLine returns list of class “gvis” and “list”.

Q. Which of the following is used for creating interacting tables?

Q. Point out the correct statement.

Q. Which of the following reads a data.frame and creates text output referring to the Google Visualization API?