I have pandas DataFrame with 2 rows:
+---------+---------+-----------+------------+
|       ID|     Type|      Index|        Code|
+---------+---------+-----------+------------+
|111111111|       aa|          1|         XXX|
|111111111|       aa|       null|         XXX|
How can I show those columns that have different values between rows of df? (there might be more than 2 rows).
In the above-shown example, the expected output is Index, because the first row has Index equal to 1 and the second row has Index equal to null.
 
     
     
     
    