Challenge
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 7
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 3.33
Challenge
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 7
single