2016-10-06 5 views

答えて

4

このコードは、列の間の値を反転します:

>>> df_name[['A', 'B']] = df_name[['B', 'A']] 

>>> print(df_name) 
A B 
2 0 
3 1 
関連する問題