I have two large dataframes : salepricedf which stores the sale price, time sold, and date sold of a warehouse item, and dataanalysisdf, which stores all bid/ask price updates of auction.
I want to conduct an analysis on item in salepricedf of how their price fluctuates until the end of our dataset. I would like to split dataanalysisdf by multiple rows, of date and time.
I have attempted to do this by using the following code:
dataanalysisdf = dataanalysisdf[dataanalysisdf.loc[dataanalysisdf['Date']==date].index[0]:]
dataanalysisdf= dataanalysisdf[dataanalysisdf.loc[dataanalysisdf['Time']==time.index[0]:]
but this does not work. It skips the date + 1, and it doesnt even listen to the time.
NOTE
it should be noted that my dates and times are not actual datetime objects. They are integers of the format YYMMDD and HHMMSS.