I have a CSV file with dates populated in each cell and I am wanting to count how many of each date there are and then I will be plotting onto a bar graph using matplotlib.
I'm not sure how to go about counting how many instances of each date there are?
I have the following code to read csv file but not sure where to go from here
def Readtoarray():
with open('Book1.csv','r') as file:
reader = csv.reader(file, delimiter=',')
next(reader, None) # skip the headers
for row in reader:
XXXXXXXXX
Example data:
23/03/2020,6630997
23/03/2020,6630990
20/03/2020,6630390
20/03/2020,6630386