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

Contenido del Curso

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?

Selecciona la respuesta correcta

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

¿Todo estuvo claro?

Sección 1. Capítulo 12
course content

Contenido del Curso

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?

Selecciona la respuesta correcta

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

¿Todo estuvo claro?

Sección 1. Capítulo 12
some-alt