I am trying to drop outdated values from a dataframe that holds a difficult to compare date format. My code:
frame=pd.read_csv("somefile.csv")
frame=frame[datetime.strptime(frame["CreationTime"],"%d-%b-%Y %H:%M:%S")>(datetime.now()-timedelta(days=daypar))]
However I get the error that the 1st arg of strptime should be str and not Series, Which makes sense. So how would one go about solving this issue?