Challenge
Uppgift
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
datain the following format: key is'Prices', respective values ispriceslist ('Price': prices), and key is'Quantity', respective values isquantitylist. - Create DataFrame
dfusing.DataFrame()method and passing thedataas the first parameter, andnamesas theindexparameter.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.33
Challenge
Svep för att visa menyn
Uppgift
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
datain the following format: key is'Prices', respective values ispriceslist ('Price': prices), and key is'Quantity', respective values isquantitylist. - Create DataFrame
dfusing.DataFrame()method and passing thedataas the first parameter, andnamesas theindexparameter.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 7
single