Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #array #values #updateing
ADD COMMENT
Topic
Name
8+4 =