I am looking for a function that drops the last x rows of a dataframe, so that for example only 50 rows are left. The problem is that the number of rows varies every time I run