Numpy slicing image

I found a great cheat-sheet image that shows how Numpy slicing works: Thanks to scipy-lectures.org

AttributeError: ‘Series’ object has no attribute ‘strftime’

When getting this error, instead of dff[“New Time”] = dff[“Old Time”].strftime(“%d/%m/%Y %H:%M”) we should add “.dt” (it can be used to access the values of the series as datetimelike and return several properties.) dff[“New Time”] = dff[“Old Time”].dt.strftime(“%d/%m/%Y %H:%M”)