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?

Виберіть правильну відповідь

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

Все було зрозуміло?

Секція 1. Розділ 12
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?

Виберіть правильну відповідь

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

Все було зрозуміло?

Секція 1. Розділ 12
some-alt