Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Task: Creating a Table of Popular Coffee Drinks | Basics of Dataframes
Pandas: First Steps

Swipe to show menu

book
Task: Creating a Table of Popular Coffee Drinks

Task

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
Espresso2.5Italy
Latte3.5France
Cappuccino3.0Italy

Complete the code to create a DataFrame which contains the given data.

Note

Use the Dictionary of Lists format for representing the data.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 2.7

book
Task: Creating a Table of Popular Coffee Drinks

Task

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
Espresso2.5Italy
Latte3.5France
Cappuccino3.0Italy

Complete the code to create a DataFrame which contains the given data.

Note

Use the Dictionary of Lists format for representing the data.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 2.7

Swipe to show menu

some-alt