Computer Science, asked by bikashranjanbhattach, 1 month ago

Explain what the following statements are doing ? DF is the name of the dataframe 1) DF.iloc[:5,] 2) DF.iloc[1:5,]​

Answers

Answered by sangeetas178717
0

(i) (b) 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

Similar questions