InterviewSolution
Saved Bookmarks
| 1. |
Explain what the following statements are doing ? DF is the name of the dataframe 1) DF.iloc[:5,] 2) DF.iloc[1:5,] |
|
Answer» print(df.max()) (II) (a) df1=df[df[‘ROLLNO’]==4] print(df1) (d) df1=df[df.rollno==4] print(df1) (iii) (a) both (i) and (ii) (iv) (d) both (i) and (ii) (v) (B) df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]Read more on Sarthaks.com - https://www.sarthaks.com/971160/consider-the-following-dataframe-answer-questions-rollno-name-ut1-ut2-ut3-ut4-prerna-singh |
|