Informatics Practices
To create an empty Series object, you can use :
- pd.Series(empty)
- pd.Series(np.NaN)
- pd.Series( )
- all of these
Python Pandas
4 Likes
Answer
pd.Series()
Reason — To create an empty Series object i.e., having no values, we can just use the Series() as: <Series Object> = pandas.Series()
.
Answered By
3 Likes
Related Questions
What is the role of inplace argument in rename() function.
Which of the following statement will import pandas library ?
- Import pandas as pd
- import Pandas as py
- import pandas as pd
- import panda as pd
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
To get the number of dimensions of a Series object, …………… attribute is displayed.
- index
- size
- itemsize
- ndim