Course Content
Pandas: First Steps
Pandas: First Steps
Task: Creating a Table of Popular Coffee Drinks
Swipe to start coding
The manager of CafΓ© Pandasia wants to organize a simple menu of their most popular coffee drinks, including each drinkβs price and country of origin.
Theyβve handed you the following data in table form:
β Coffee | π² Price | π Origin |
---|---|---|
Espresso | 2.5 | Italy |
Latte | 3.5 | France |
Cappuccino | 3.0 | Italy |
Complete the code to create a DataFrame which contains the given data.
Note
Use the Dictionary of Lists format for representing the data.
Solution
Thanks for your feedback!
Task: Creating a Table of Popular Coffee Drinks
Swipe to start coding
The manager of CafΓ© Pandasia wants to organize a simple menu of their most popular coffee drinks, including each drinkβs price and country of origin.
Theyβve handed you the following data in table form:
β Coffee | π² Price | π Origin |
---|---|---|
Espresso | 2.5 | Italy |
Latte | 3.5 | France |
Cappuccino | 3.0 | Italy |
Complete the code to create a DataFrame which contains the given data.
Note
Use the Dictionary of Lists format for representing the data.
Solution
Thanks for your feedback!