Exploring Pandas with a Bakery Transaction Dataset
Exploring Pandas with a Bakery Transaction Dataset Data Science Project
Intro to Pandas for Data Analysis

Exploring Pandas with a Bakery Transaction Dataset

In this project, we will delve into the basics of DataFrames by analyzing a dataset containing transactions from The Bread Basket, a bakery located in Edinburgh. Your objective will be to work with fundamental Pandas methods such as reading datasets, displaying rows, checking data types and developing essential skills for handling data effectively.
Start this project
Exploring Pandas with a Bakery Transaction DatasetExploring Pandas with a Bakery Transaction Dataset
Project Created by

Vidhi Shah

Project Activities

All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.

All our activities include solutions with explanations on how they work and why we chose them.

multiplechoice

What is pandas?

multiplechoice

What are the two main types of data structure in pandas?

multiplechoice

Which of the following is `NOT` a method for reading data into pandas?

multiplechoice

Which function is used to create a pandas DataFrame from a dictionary?

multiplechoice

Which function is used to load CSV files in pandas?

multiplechoice

Which of these methods can display the first five rows of a DataFrame?

codevalidated

Load the dataset

Load a CSV file named bread-basket.csv using pd.read_csv().

Store the data in a variable named df_data.

Your result would look something like this :

img7

codevalidated

Display the Last 10 Rows

Use the tail() method to display the last 10 rows of df_data and store it in a variable namedlast_ten.

Your result would look something like this :

img8

multiplechoice

How to find out the data type of `Transaction` column?

multiplechoice

What does the following code do?

    df_data = pd.read_csv("bread-basket.csv")
    df_data.head(5)
multiplechoice

Which of the following is the correct syntax to get a summary of non-null values and data types for each column in a DataFrame `df`?

multiplechoice

Which of the following is the correct way to view the unique items bought in the `Item` column?

Exploring Pandas with a Bakery Transaction DatasetExploring Pandas with a Bakery Transaction Dataset
Project Created by

Vidhi Shah

As a Project Author at DataWars, I dive into the world of data science and AI/ML with a millennial flair, constantly intrigued by the inner workings of technology. While I'm not crunching numbers, you'll find me cheering for my favorite cricket team.

As a Project Author at DataWars, I dive into the world of data science and AI/ML with a millennial flair, constantly intrigued by the inner workings of technology. While I'm not crunching numbers, you'll find me cheering for my favorite cricket team.

This project is part of

Intro to Pandas for Data Analysis

Explore other projects