python pandas to_datetime change format -
my input text based, e.g. column "closeddate" = "2016-10-31 16:54:18"
with:
df.closeddate = pd.to_datetime(df.closeddate).dt.date
i format "2016-10-31", i.e. keeping date part , dropping time, works fine far, need "31.10.2016".
what best , "elegant way accomplish that? tried adding "format = "%d%m%y" doesn't work.
thanks
Comments
Post a Comment