Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Extracting Columns Quiz | The Very First Steps
Pandas First Steps

Extracting Columns QuizExtracting Columns Quiz

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
course content

Course Content

Pandas First Steps

Extracting Columns QuizExtracting Columns Quiz

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
some-alt