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