I have a historical list of prospects I've contacted, with timestamp of each contact, and my corresponding profit from each call. I'd like to use this data to target the most profitable prospects based on what HOUR of day I previously contacted them. Basically, I want to generate a list of most profitable prospects based on time of day, so I can call the most profitable at all times.
I am looking to create a prompt in R or python that looks like this:
Prompt - "What time is it?"
*Then I input the time and I am shown a list of "ProspectID" sorted from highest "profitability" to lowest, maybe displaying only the top 50.
I have 3 columns and 100,000 records - "timeofday" - UTC time "prospectID" - ID of prospect I am looking to target "profitability" - amount of expected profit.