100 numpy questions 61-100

  1. 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
    

Guess you like

Origin blog.csdn.net/u011699626/article/details/109694405