Python Pandas split Date in day month year and hour

Tim Williams tjandacw at gmail.com
Wed Aug 19 20:30:53 EDT 2020


On Wed, Aug 19, 2020 at 1:43 PM J Conrado <jorge.conforte at inpe.br> wrote:
>>> 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
>> --
> https://mail.python.org/mailman/listinfo/python-list

I'm also starting to learn pandas. A better place to ask a pandas question
is StackOverflow. Here's a link that may answer your question.
Convert timestamp to day, month, year and hour
<https://stackoverflow.com/questions/57515291/convert-timestamp-to-day-month-year-and-hour>
----
Tim Williams


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /