I have a DataFrame with a str column of dates like
'time': '2018-02-25T08:00:00.000Z'
but when applying pd.to_datetime to that column, the output looks like
'time': '2018-02-25 08:00:00+00:00'
Why is the format changing? I tried
pd.to_datetime(utc = True)
and
pd.to_datetime(..., format='%Y-%m-%dT%H:%M:%S.%f%z')
but none of them seem to work and the format gets changed.