Q. Predict the output of following code:-
my_di = {"name" : ["Jiya", "Tim", "Rohan"], "age" : np.array([10,15, 20]), "weight": (75,123,239), "height" : [4.5, 5, 6.1], "siblings" : 1, "gender" : "M"}
Df = pd.DataFrame(my_di)
print(Df)
Answer =
It makes the dataframe of my_di dictionary.
Output :-
name age weight height siblings gender
0 Jiya 10 75 4.5 1 M
1 Tim 15 123 5.0 1 M
2 Rohan 20 239 6.1 1 M
>>>
>>>S1= pd.series()
ReplyDelete>>>Print(S1)
??
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )