擅长:python、mysql、java
<p>我无法重现您的问题,但我弥补了数据['ra']不包含数字类型。它看起来像一个unicode字符串。你知道吗</p>
<p>如果是这种情况,可以通过在相乘之前显式指定类型来解决:</p>
<blockquote>
<p>data['ra'] = float(data['ra'])</p>
</blockquote>
<p>编辑:好的,那么它包含一个数组,所以您需要以兼容的方式修改类型:</p>
<blockquote>
<p>data['ra']= np.asarray(data['ra'], dtype='float64')</p>
</blockquote>