Correct Answer : SparseArray
Explanation : SparseArray is a 1-dimensional ndarray-like object storing only values distinct from the fill_value.
df = pd.DataFrame({‘c1’:[12,34,45],’c2’:[32,21,44],’c3’:[74,41,20]}) print(df.index)
Correct Answer : RangeIndex(start=0, stop=3, step=1)
import pandas as pd S1 = pd.Series(data = (31, 2, -6), index = [7, 9, 3, 2]) print(S1)
Correct Answer : ValueError
import pandas as pd import numpy as np s = pd.Series(np.random.randn(2)) print s.size
Correct Answer : 2
Explaination : Returns the size(length) of the series.