Q. Write code to print all the information about a Series object.
You can understand by Watching video :-
Answer =
import pandas as pd s = pd.Series([40,35,25,20,22,26,28,29,23,28]) print("shape of Series :", s.shape) print("dtype of Series :", s.dtype) print("index of Series :", s.index) print("nbytes of Series :", s.nbytes) print("Ndimension of Series :", s.ndim) print("size of Series :", s.size) print("NaN values of Series :", s.hasnans)
Output :-
shape of Series : (10,)
dtype of Series : int64
index of Series : RangeIndex(start=0, stop=10, step=1)
nbytes of Series : 80
Ndimension of Series : 1
size of Series : 10
NaN values of Series : False
>>>
Thank u but can you add output of other program it will be easier to check our output by comparing yours 😀
ReplyDeleteWelcome : ) , May you Plaese comment on that posts.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )