<p>我有一个非常简单的查询,我试图使用fromiter()函数将其转换为NumPy数组。但是,我不明白为什么它不起作用,或者下面的错误意味着什么。有什么想法吗?在</p>
<pre><code>import numpy as np
c.execute("SELECT video_id FROM video")
results = c.fetchall()
D = np.fromiter(results, dtype=float, count=-1)
ERROR: ValueError: setting an array element with a sequence.
</code></pre>