Ecommerce Purchases Exercise

In this Exercise you will be given some data about some purchases done through Amazon! Just go ahead and follow the directions and answer the questions and complete the tasks.

Also note that all of these questions can be answered with one line of code.


Import pandas and read in the Ecommerce Purchases csv file and set it to a DataFrame called ecom.

Check the head of the DataFrame.

How many rows and columns are there?

What is the average Purchase Price?

What were the highest and lowest purchase prices?

How many people have English 'en' as their Language of choice on the website?

How many people have the job title of "Lawyer" ?

How many people made the purchase during the AM and how many people made the purchase during PM ?

What are the 5 most common Job Titles?

Someone made a purchase that came from Lot: "90 WT" , what was the Purchase Price for this transaction?

What is the email of the person with the following Credit Card Number: 4926535242672853

How many people have American Express as their Credit Card Provider and made a purchase above $95 ?

Hard: How many people have a credit card that expires in 2025?

Hard: What are the top 5 most popular email providers/hosts (e.g. gmail.com, yahoo.com, etc...)

Great Job!