[python] Get first row of dataframe in Python Pandas based on criteria