If we have a DataFrame called products with four columns: 'id', 'name', 'type', and 'price', how would we correctly extract the 'name' and 'price' columns?
products
'id'
'name'
'type'
'price'
Select the correct answer
products[['name', 'price']]
products['name']['prices']
products['name', 'price']
products('name', 'price)
How can we improve it?
Thanks for your feedback!
Ask AI
Ask anything or try one of the suggested questions to begin our chat