Python Pandas split Date in day month year and hour

J Conrado jorge.conforte at inpe.br
Wed Aug 19 13:32:45 EDT 2020



Hi,


I'm satarting using Pandas to read excel. I have a meteorological 
synoptic data and I have for date:


0   2017-11-01 00:00:00
1   2017-11-01 03:00:00
2   2017-11-01 06:00:00
3   2017-11-01 09:00:00
4   2017-11-01 12:00:00
..                  ...
229 2017-11-30 09:00:00
230 2017-11-30 12:00:00
231 2017-11-30 15:00:00
232 2017-11-30 18:00:00
233 2017-11-30 21:00:00


I would like know how can I get for this array the values for day, month 
and hour:

2017-11-01 03:00:00       year = 2017      month = 11    day = 1    and 
    hour = 3



Thanks,


Conrado



More information about the Python-list mailing list