I have a very simple query, and I'm trying to convert it into a NumPy array using the fromiter() function. However, I can't figure out why it's not working, or what the error below means. Any ideas?
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.