Hi all I have a list with Datetime indexes in it, with time interval 15 minutes (see screenshot)
I would like to create a dataframe with 2 columns only, the first with 'hour' and the second with 'minute' using this Datetime index.
The result I would like to be like this:
hour minute
08 00
08 15
08 30 etc.
Is it possible? thanks a lot!
Use list comprehension for tuples for minutes and hours with flattening:
Or:
If always one element index values is possible select first value by indexing:
Or: