【发布时间】:2016-05-18 20:52:33
【问题描述】:
我有一个使用 numpy 包的 python 函数。它使用 numpy.sort 和 numpy.array 函数,如下所示:
def function(group):
pre_data = np.sort(np.array(
[c["data"] for c in group[1]],
dtype = np.float64
))
如何仅使用 Python 重写排序和数组函数,从而不再需要 numpy 包?
【问题讨论】:
标签: python arrays sorting numpy