Converting Pandas Timestamp to just the time (looking for something faster than .apply)

前端 未结 1 1592
难免孤独
难免孤独 2020-12-11 08:05

So if I have a timestamp in pandas as such:

Timestamp(\'2014-11-07 00:05:00\')

How can I create a new column that just has the \'time\' com

相关标签:
1条回答
  • 2020-12-11 08:09

    You want .dt.time see the docs for some more examples of things under the .dt accessor.

    df['date_time'].dt.time
    
    0 讨论(0)
提交回复
热议问题