myDataFrame = pd.DataFrame(columns=["Content", "User", "Timestamp"], data=[["Airplane", 1, 1515356018],
["Car", 1, 1515356025],
["END", 1, 1515356027],
["Plus", 1, 1515356028],
["Train", 2, 1515356031],
["Trying", 2, 1515356039],
["View", 2, 1515356047],
["END", 2, 1515356050],
["Cast", 2, 1515356055]])
last_considered = myDataFrame["Timestamp"].where(myDataFrame['Content'] == "END").groupby(myDataFrame["User"]).transform("max").astype(int)
to_drop = myDataFrame[myDataFrame['Timestamp'] > last_considered]
to_keep = myDataFrame[myDataFrame['Timestamp'] <= last_considered]