data type and logarithm
afylot@gmail.com
antonella.garzilli at gmail.com
Thu Jun 16 05:27:26 EDT 2011
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... at nowhere.com> wrote:
> A string. You probably want to convert "columns" to floats before
> appending its elements to the array.
More information about the Python-list
mailing list