Beginner here and a little confused.
I have a set of data that makes heavy use of UNIX int timestamps (ms). A lot of this is outside the scope of my software, we're talking APIs, DBs, etc. etc.
These APIs, Databases, etc. Are all setup to ingest and return Dataframes, and these contain the dates as ints: 1642463640000
Because of this, I don't want to convert these to readable dates.
In addition to this these timestamps are set as an index, so for example:
df = pd.DataFrame({"timestamp": 1642463640000, 'otherdata':'yolo'})
df.set_index('timestamp', inplace=True)
My problem is that I can't, for the life of me, figure out how to slice this data to get, say, everything between two dates.
Because everything is expecting timestamps, I don't want to convert from timestamp to date and back constantly. Am I missing something obvious? Is there a timestamp dtype maybe? Any help would be appreciated.