Q. Given a DataFrame mdf as shown below:
A B C
0 1 2 3
1 4 5 6
What will be the output produced by the following code ?
print("I :", mdf.iloc[0][0])
print("II :", mdf.loc[0]['C'])
print("III : ", mdf.at[1, 'A'])
print("IV : ", mdf.iat[1,2])
Answer :-
I : 1
II : 3
III : 4
IV : 6
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )