Question: Given a data frame named 'product' with column names [ ' c 1 ' , ' c 2 ' , ' c 3 ' ]

Given a data frame named 'product' with column names ['c1','c2','c3'], how to drop the column 'c2'?
product. drop(c2;', axis=1)
df drop(ce')
product. drop('c2)
product. drop ['c2', axis=1]
 Given a data frame named 'product' with column names ['c1','c2','c3'], how

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!