- 如何将数字转换为分类(文本)数组, 比如:
# 原始文件位置
file_path = "C:/Users/15025/Desktop/Iris.csv"
使用np.digitize()
函数
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 31 15:23:24 2020
@author: 15025
"""
import numpy as np
class NumpyStudy
# 原始文件位置
file_path = "C:/Users/15025/Desktop/Iris.csv"
使用np.digitize()
函数
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 31 15:23:24 2020
@author: 15025
"""
import numpy as np
class NumpyStudy