- 如何按列对2D数组排序,比如:
# 原始文件位置
file_path = "C:/Users/15025/Desktop/Iris.csv"
使用np.genfromtxt()
和.argsort()
函数
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 13:10:04 2020
@author: 15025
"""
import numpy as np
class NumpyStudy:
def sort2DArray(self)