I am new to Python and need some help please. My below working code calculates the date/month ranges but I am using Pandas library which I want to get rid off.