Contenido del Curso
Advanced Techniques in pandas
Advanced Techniques in pandas
Extracting Specific Data
Swipe to show code editor
Your task here is to practice. You need to extract specific data on cars. Follow the algorithm:
- Using the
.between()
method create the condition to extract data on cars where'Price'
is between15 000
(inclusive) and20 000
(exclusive). - Using the
.between()
method create the condition to extract data on cars where'Year'
is between2015
(exclusive) and2020
(exclusive). - Using the
.isin()
method create the condition to extract data on such values from'Fuel_type'
column:'Plug-in Hybrid'
and'Hybrid'
(the values are stored in the variablefuel_types
). - Unite three conditions using two and statements.
¡Gracias por tus comentarios!
Extracting Specific Data
Swipe to show code editor
Your task here is to practice. You need to extract specific data on cars. Follow the algorithm:
- Using the
.between()
method create the condition to extract data on cars where'Price'
is between15 000
(inclusive) and20 000
(exclusive). - Using the
.between()
method create the condition to extract data on cars where'Year'
is between2015
(exclusive) and2020
(exclusive). - Using the
.isin()
method create the condition to extract data on such values from'Fuel_type'
column:'Plug-in Hybrid'
and'Hybrid'
(the values are stored in the variablefuel_types
). - Unite three conditions using two and statements.
¡Gracias por tus comentarios!
Extracting Specific Data
Swipe to show code editor
Your task here is to practice. You need to extract specific data on cars. Follow the algorithm:
- Using the
.between()
method create the condition to extract data on cars where'Price'
is between15 000
(inclusive) and20 000
(exclusive). - Using the
.between()
method create the condition to extract data on cars where'Year'
is between2015
(exclusive) and2020
(exclusive). - Using the
.isin()
method create the condition to extract data on such values from'Fuel_type'
column:'Plug-in Hybrid'
and'Hybrid'
(the values are stored in the variablefuel_types
). - Unite three conditions using two and statements.
¡Gracias por tus comentarios!
Swipe to show code editor
Your task here is to practice. You need to extract specific data on cars. Follow the algorithm:
- Using the
.between()
method create the condition to extract data on cars where'Price'
is between15 000
(inclusive) and20 000
(exclusive). - Using the
.between()
method create the condition to extract data on cars where'Year'
is between2015
(exclusive) and2020
(exclusive). - Using the
.isin()
method create the condition to extract data on such values from'Fuel_type'
column:'Plug-in Hybrid'
and'Hybrid'
(the values are stored in the variablefuel_types
). - Unite three conditions using two and statements.