Write statement(s) to change the values to 750 at 4th row to 9th row, 7th column in a DataFrame df.
6 Likes
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.
df.iloc[3:9, 6] = 750
Answered By
4 Likes
Write statement(s) to delete a column from a DataFrame.
Write statement(s) to change the value at 5th row, 6th column in a DataFrame df.
What is the difference between iloc and loc with respect to a DataFrame ?
What is the difference between iat and at with respect to a DataFrame ?