Section 1. Chapter 7
single
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
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat