Advertisements
Advertisements
Question
Assertion (A): A Series is a one dimensional array and a DataFrame is a two-dimensional array containing sequence of values of any data type. (int, float, list, string, etc.)
Reason (R): Both Series and DataFrames have by default numeric indexes starting from zero.
Options
Both (A) and (R) are true and (R) is the correct explanation for (A).
Both (A) and (R) are true and (R) is not the correct explanation for (A).
(A) is true and (R) is false.
(A) is false but (R) is true.
MCQ
Assertion and Reasoning
Solution
Both (A) and (R) are true and (R) is not the correct explanation for (A).
Explanation:
Although the statement accurately characterises the properties of Series and DataFrame objects, it is untrue regarding DataFrames' default index behaviour.
shaalaa.com
Is there an error in this question or solution?