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 select the columns 'c2' and 'c3'?
product ['c2','c3']
product.iloc[:,['c2','c3']]
product.loc(:; ['c2','c3'])
product.loc[:,['c2','c3']]
 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!