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
(one, two) = three로 표 다시 만든거
자세히 설명가능할까 또멍청이라 - dc App
0, 1이면 2고 3, 4면 5잖아 NaN은 not a number인데 걍 값이 없다고 보면 됨
아 알겠다이제 고맙다 - dc App
고맙다이기야 - dc App