df1 = DataFrame(np.arange(6).reshape(2, 3), index=['a', 'b'], columns=['one', 'two', 'three'])
print(df1)
print(df1.pivot('one','two'))

이게 코드내용이고

   one  two  three
a    0    1      2
b    3    4      5
    three    
two     1    4
one          
0     2.0  NaN
3     NaN  5.0

이게 출력인데

pivot이 왜저렇게 출력되는지 이해가 안감..

- dc official App