Correct Answer : Option (B) : SparseList
df = pd.DataFrame({‘c1’:[12,34,45],’c2’:[32,21,44],’c3’:[74,41,20]}) print(df.index)
Correct Answer : Option (B) : 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 : Option (A) : ValueError
import pandas as pd import numpy as np s = pd.Series(np.random.randn(2)) print s.size
Correct Answer : Option (C) : 2
Explaination : Returns the size(length) of the series.