extract first and last row of a dataframe `df`,"pd.concat([df.head(1), df.tail(1)])"