How to modify the data set such that it shows per month for each country how many purchases were made?
This is part of the dataset I have. There are hundreds of orders per date per country. I would like to modify the data set such that it shows per month for each country how many purchases were made.
I am beginner in data science, any help will be highly appreciated.
So far I have sorted the countries which I would like to use in my report.
datasetCountry = dataset[dataset['Country'].isin(["France","Belgium","EIRE","Germany","Netherlands","Norway","Portugal","Spain","Switzerland"])].copy()
datasetCountry.head()
But I do not have an idea how to count the orders per month for each of them