CBSE Class 12 Informatics Practices Question 105 of 167

Python Pandas — I — Question 16

Back to all questions
16
Question

Question 16

Write statement(s) to change the values to 750 at 4th row to 9th row, 7th column in a DataFrame df.

Answer

The statement to change the value to 750 at 4th row to 9th row, 7th column in a DataFrame df is:

df.iloc[3:9, 6] = 750.