Course Content
Introduction to pandas [track]
Introduction to pandas [track]
Challenge
Task
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.
Thanks for your feedback!
Challenge
Task
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.
Thanks for your feedback!
Challenge
Task
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.
Thanks for your feedback!
Task
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.