2012/5/18 Adrian Roldan <roldanadrian en gmail.com>: > > matriz = np.hstack((matrizdatos1, matrizdatos2)) > for linea in matriz: > try: > kt = linea[17] / linea[6] > except ZeroDivisionError: > kt = -8000 Fijate numpy.nan_to_num