Informatics Practices
To check if the Series object contains NaN values, …………… attribute is displayed.
- hasnans
- nbytes
- ndim
- dtype
Python Pandas
1 Like
Answer
hasnans
Reason — The hasnans attribute is used to check if a Series object contains some NaN value or not. The syntax is <Series object>.hasnans.
Answered By
3 Likes
Related Questions
To get the number of elements in a Series object, …………… attribute may be used.
- index
- size
- itemsize
- ndim
To get the number of bytes of the Series data, …………… attribute is displayed.
- hasnans
- nbytes
- ndim
- dtype
To display third element of a Series object S, you will write …………… .
- S[:3]
- S[2]
- S[3]
- S[:2]
To display first three elements of a Series object S, you may write …………… .
- S[:3]
- S[3]
- S[3rd]
- all of these