pandas format custom date in data frame
[
{foo: 1, created_date:"2016-06-04 03:00:01.727"},
...
]# assuming df contains the data frame
df['timestamp'] = pd.to_datetime(be.timestamp, format="%Y-%m-%d %H:%M:%S.%f")
df.set_index(df['timestamp'], inplace=True)Last updated