While looking for an answer of how to check NaN values, I found this stack overflow post.
How to check if any value is NaN in a Pandas DataFrame
I used the answer by hobs. But I am getting exactly same results with or without the last transpose method.
nan_rows = df[df.isnull().T.any().T]
nan_rows = df[df.isnull().T.any()]
Exactly the same rows return for both the statements. Is there any specific reason that the answer mentioned has additional T ?