Sep-05-2017, 07:34 PM
isocalendar() is datetime object's method. It appears your "values" is a string object.
The part in my example here
The part in my example here
datetime.strptime(last_element, '%m/%d/%y %H:%M')/converts the string to a datetime object in which can use isocalendar(). This is a very important step.
Recommended Tutorials: