course content

Course Content

Pandas First Steps

ChallengeChallenge

question-icon

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?

Select the correct answer

Hint
To extract multiple columns from a DataFrame, you should use the following syntax: `dataframe[['column1', 'column2']]`.

Everything was clear?

Section 1. Chapter 12