- 如何在numpy中找到分组平均值,比如:
# 原始文件位置
file_path = "C:/Users/15025/Desktop/Iris.csv"
方法一:使用np.genfromtxt()
,.astype()
,np.mean()
,np.where()
和np.unique()
函数
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 13:10:04 2020
@author: 15025
"""
import numpy as np
class NumpyStudy:
@staticmethod