For the first error, it would be better to see the code that produced it.
For the second one, try float.
(not the .
, for broadcasting).
For the first error, it would be better to see the code that produced it.
For the second one, try float.
(not the .
, for broadcasting).