Question: Let, 'marks' be an attribute of a dataframe df . Which of the following is true for the following code? df . drop ( '

Let, 'marks' be an attribute of a dataframe df. Which of the following is true for the following code?
df.drop('marks', axis =1)
Answer choices
Select only one option
The 'marks' column will be dropped and the changes will be reflected in the original dataframe
The 'marks' column will be dropped and the changes will be not be reflected in the original dataframe
The row with index name marks will be dropped and the changes will be reflected in the original dataframe
The row with index name marks will be dropped and the changes will be not be reflected in the original dataframe

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!