- How to find the group average in numpy, such as:
# 原始文件位置
file_path = "C:/Users/15025/Desktop/Iris.csv"
Method a: use of np.genfromtxt()
, .astype()
, np.mean()
, np.where()
and np.unique()
functions
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 13:10:04 2020
@author: 15025
"""
import numpy as np
class NumpyStudy:
@staticmethod