How could I transform the following float:
9.3125
which corresponds to a time, into a proper Pandas timestamp in the likes of:
Timestamp('2017-11-13 10:00:00')
The float belongs to the same day, month, and year as the example timestamp above. I have been trying this:
from datetime import datetime
datetime.fromtimestamp(9.3125).strftime('%Y-%m-%d %H')
but this returns:
OSError: [Errno 22] Invalid argument