📜  numpy 数组值未更新 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:22.004000             🧑  作者: Mango

代码示例1
supp = np.array([['A', '5', '0'], ['B', '3', '0'], ['C', '4', '0'], ['D', '1', '0'], ['E', '2', '0']])
supp = supp.astype(object)

for row in supp:
    row[2] = int(row[1]) / 6