Conteúdo do Curso
Introduction to pandas [track]
Introduction to pandas [track]
Challenge
Tarefa
Swipe to start coding
You are given three lists: prices
, names
, and quantity
, representing prices of items, their names and quantity, respectively. Your tasks are:
- Create dictionary
data
in the following format: key is'Prices'
, respective values isprices
list ('Price': prices
), and key is'Quantity'
, respective values isquantity
list. - Create DataFrame
df
using.DataFrame()
method and passing thedata
as the first parameter, andnames
as theindex
parameter.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 7
Challenge
Tarefa
Swipe to start coding
You are given three lists: prices
, names
, and quantity
, representing prices of items, their names and quantity, respectively. Your tasks are:
- Create dictionary
data
in the following format: key is'Prices'
, respective values isprices
list ('Price': prices
), and key is'Quantity'
, respective values isquantity
list. - Create DataFrame
df
using.DataFrame()
method and passing thedata
as the first parameter, andnames
as theindex
parameter.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 7