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?

Selecione a resposta correta

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

Tudo estava claro?

Seção 1. Capítulo 12
course content

Conteúdo do 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?

Selecione a resposta correta

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

Tudo estava claro?

Seção 1. Capítulo 12
some-alt