Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パンダの使用:
df = pd.DataFrame({'n':['d','a','b','c','c','a','d','b'], 'v':[1,2,1,2,2,1,1,1]})
の要素の名前を、 、 、 、に変更して、次のdf.nように変更するにはどうすればよいですか。axbycwdz
df.n
a
x
b
y
c
w
d
z
n v 0 z 1 1 x 2 2 y 1 3 w 2 ...