Informatics Practices
The del statement can remove the rows as well as columns in a dataframe.
Python Pandas
1 Like
Answer
False
Reason — The del statement is used to delete columns in a DataFrame, while the drop() function is used to delete rows from a DataFrame.
Answered By
3 Likes
Related Questions
A Series object can store only homogeneous (same type of) elements.
A DataFrame object can store only homogeneous elements.
The rename() always makes changes in the default dataframe.
Assertion (A). To use the Pandas library in a Python program, one must import it.
Reasoning (R). The only alias name that can be used with the Pandas library is pd.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.