Answers for "numpy array values not updateing"

0

numpy array values not updateing

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
Posted by: Guest on June-07-2020

Code answers related to "numpy array values not updateing"

Python Answers by Framework

Browse Popular Code Answers by Language