Assume I have a DataFrame sales of timestamp values:
sales
timestamp sales_office 2014-01-01 09:01:00 Cincinnati 2014-01-01 09:11:00
Now we can use:
sales['time_hour'] = sales['timestamp'].apply(lambda x: x.hour)