我有一个小问题。我需要将一列(数据)拆分为多列。
原始列
download()
我需要获得如下输出:
upload()
我使用R,0 3.0
1 3.0
2 3.0
3 3.0
4 3.0
5 2.0
6 3.0
7 3.0
... ...
15 3.0
dtype: float64
但是我正在尝试寻找一种等效的方法来用Python做到这一点。
答案 0 :(得分:0)
解决方案是:
max_u = max_u.reshape(-1,4)