Q. Write commands to print the following details of a series object seal.
(a) If the series is empty
(b) Indexes of the series
(c) The data type of underlying data
(d) If the series stores any NaN values
Answer :-
(a)
print(seal.empty)
(b)
print(seal.index)
(c)
print(seal.dtype)
(d)
print(seal.hasnans) #If the series contains any missing values, the command seal.hasnans will return True.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )