I tried to cast it to float by rho = float(np.append(rho,columns[0]))
but I get TypeError: don't know how to convert scalar number to float By the way, if I avoid to perform the logarithm and do a plot like pylab.plot(rho, entropy) it works! Any idea? On Jun 16, 11:16 am, Nobody <nob...@nowhere.com> wrote: > A string. You probably want to convert "columns" to floats before > appending its elements to the array. -- http://mail.python.org/mailman/listinfo/python-list