Challenge
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 7
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Résumer ce chapitre
Expliquer le code dans file
Expliquer pourquoi file ne résout pas la tâche
Awesome!
Completion rate improved to 3.33
Challenge
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Awesome!
Completion rate improved to 3.33Section 1. Chapitre 7
single