a) Trueb) False Answer: aExplanation: If no index is passed, one will be created having ...
View QuestionWhich of the following operation works with the same syntax as the analogous dict operations?
a) Getting columnsb) Setting columnsc) Deleting columnsd) all of the mentioned Answer: dExplanation: You can ...
View QuestionWhich of the following works analogously to the form of the dict constructor?
a) DataFrame.from_itemsb) DataFrame.from_recordsc) DataFrame.from_dictd) all of the mentioned Answer: aExplanation: DataFrame.from_records takes a list of ...
View QuestionSeries is a one-dimensional labeled array capable of holding any data type.
a) Trueb) False Answer: aExplanation: The axis labels are collectively referred to as the index.
View QuestionWhich of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?
a) DataFrame.from_itemsb) DataFrame.from_recordsc) DataFrame.from_dictd) all of the mentioned Answer: aExplanation: DataFrame.from_dict operates like the DataFrame ...
View QuestionPoint out the wrong statement.
a) A DataFrame is like a fixed-size dict in that you can get and set values by index ...
View QuestionWhich of the following input can be accepted by DataFrame?
a) Structured ndarrayb) Seriesc) DataFramed) all of the mentioned Answer: dExplanation: DataFrame is a 2-dimensional ...
View QuestionThe result of an operation between unaligned Series will have the ________ of the indexes involved.
a) intersectionb) unionc) totald) all of the mentioned Answer: bExplanation: If a label is not ...
View QuestionPoint out the correct statement.
a) If data is a list, if index is passed the values in data corresponding to the labels ...
View QuestionWhich of the following thing can be data in Pandas?
a) a python dictb) an ndarrayc) a scalar valued) all of the mentioned Answer: dExplanation: ...
View Question