import datetime as dt
for row in potus[0:4]:
What I expected to happen:
I was hoping this code updates all the row values in potus list with updated date format.
What actually happened:
when the potus list is updated it at row it shows output as datetime.datetime(2015, 1, 6, 9, 30) instead of 2015-01-06 09:30:00.
When I tried to debug, and added print messages at every line, while the code executes, the variables looks right. However in the end when it updates the potus list, and when I print Potus list, it doesn’t get updated correctly.