How do I convert dates in a Pandas data frame to a 'date' data type?

前端 未结 10 2222
独厮守ぢ
独厮守ぢ 2020-11-28 02:56

I have a Pandas data frame, one of the column contains date strings in the format YYYY-MM-DD

For e.g. \'2013-10-28\'

At the moment th

10条回答
  •  -上瘾入骨i
    2020-11-28 03:44

    Try to convert one of the rows into timestamp using the pd.to_datetime function and then use .map to map the formular to the entire column

提交回复
热议问题