Exercise: Exploring E-Commerce
Explore e-commerce data analysis by learning to write Python functions that identify top customers by order count and spending, find leading countries by orders, track monthly sales in 2011, and list most ordered products. Gain hands-on experience applying groupby and sorting techniques on transactional datasets for effective exploratory data analysis.
We'll cover the following...
E-Commerce data
In this lesson, you are going to be tested on exploring E-commerce data. The dataset was made available on the UCI Machine Learning Repository. This is a transnational data set that contains all the transactions occurring between 01/12/2010 and 09/12/2011 for a UK-based and registered non-store online retail. We will be using a sample of it.
In the below exercise, you will be writing functions for every task. The functions will receive a dataframe df as an input argument. Your task will be to perform the required operations to answer a question and return the answer to that.
1. Top customers with the highest number of orders
Find the CustomerID of the top ...