I have a DataFrame df1 that looks like this:
df1
A B C ----------------- 1 1 2 2 2 3 5 4 9 >
A B C ----------------- 1 1 2 2 2 3 5 4 9
Lets use pd.unique i.e
pd.unique
df.T.agg([pd.unique]) 0 1 2 unique [1, 2] [2, 3] [5, 4, 9]