I have a long dataframe (35 million rows) of data that includes a Time column. The time in the original CSV is in the format HHMMSS, which translates into pandas as an integer. Being an integer, if the Hours are less than 2 digits the first digit drops off (ex: 090000 (9am) becomes 90000 in pandas).
I am trying to convert these integers into an actual datetime value that I can extract .time()
from, so as to be able to count in custom intervals of minutes, seconds, hours etc.
How do I convert an integer (such as 90000 or 100000) into their respective times (9am, 10am)?