1. To create an empty Series object, you can use:
pd.Series(empty)
pd.Series( )
pd.Series(np.NaN)
all of these
2. To get the number of dimensions of a Series object,
index
size attribute is displayed
itemsize
ndim
3. To specify datatype int16 for a Series object, you can write :
pd.Series(data = array, dtype = int16)
pd.Series(data = array, dtype = numpy.int16)
pd.Series(data = array.dtype, pandas.int16)
all of the above
4. To get the number of elements in a Series object, attribute may be used:
index
size
itemsize
ndim
5. To get the number of bytes of the Series data, attribute is displayed:
hasnans
nbytes
ndim
dtype
6. To check if the Series object contains NaN values, attribute is :
hasnans
isempty
hasnan
isnan
7. To display first three elements of a Series object S, you may write:
S[:3]
S[3]
S[3rd]
all of these
8. To display last four rows of a Series object S, you may write :
bottom()
bottom(4)
tail(4)
tail()
9. Pandas object that cannot grow in size is
Dataframe
Panel
Series
None of these