Que.Which of the following thing can be data in Pandas?
|
a. a python dict |
b. an ndarray |
c. a scalar value |
d. all of the mentioned |
Que.Point out the correct statement.
|
a. If data is a list, if index is passed the values in data corresponding to the labels in the index will be pulled out |
b. NaN is the standard missing data marker used in pandas |
c. Series acts very similarly to a array |
d. None of the mentioned |
NaN is the standard missing data marker used in pandas
Que.The result of an operation between unaligned Series will have the ________ of the indexes involved.
|
a. intersection |
b. union |
c. total |
d. all of the mentioned |
Que.Which of the following input can be accepted by DataFrame?
|
a. Structured ndarray |
b. Series |
c. DataFrame |
d. All of the mentioned |
Que.Point out the wrong statement.
|
a. A DataFrame is like a fixed-size dict in that you can get and set values by index label |
b. Series can be be passed into most NumPy methods expecting an ndarray |
c. A key difference between Series and ndarray is that operations between Series automatically align the data based on label |
d. None of the mentioned |
A DataFrame is like a fixed-size dict in that you can get and set values by index label
Que.Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?
|
a. DataFrame.from_items |
b. DataFrame.from_records |
c. DataFrame.from_dict |
d. All of the mentioned |
Que.Series is a one-dimensional labeled array capable of holding any data type.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.Which of the following works analogously to the form of the dict constructor?
|
a. DataFrame.from_items |
b. DataFrame.from_records |
c. DataFrame.from_dict |
d. All of the mentioned |
Que.Which of the following operation works with the same syntax as the analogous dict operations?
|
a. Getting columns |
b. Setting columns |
c. Deleting columns |
d. All of the mentioned |
Que.If data is an ndarray, index must be the same length as data.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |