I'm trying to count the occurrences of the same number in a column of a DF. These numbers represent the month of the year:
shoes_uk["Month"].head(10)
105 1
464 3
575 3
583 3
631 3
668 4
701 4
724 4
731 4
737 4
Name: Month, dtype: int64
month_14 = shoes_uk["Month"]
for m in month_14:
for j in month_14:
if m == j:
su += 1
print (su)
The Idea is to have how many occurrences I got in Jan, Feb, Mar, etc. I'm not very good with loops, I've tried different combinations from the above code but I haven't get it yet