pandas, check if nan exist in every cell of a row in df code example Example: pandas if nan, then the row above df.fillna(method='ffill')