flâneur — a map of the web's best reading

python - What's the most efficient way to convert a MySQL result set to a NumPy array? - Stack Overflow

stackoverflow.com · 2,094 words · saved by 1 readers

I'm using MySQLdb and Python. I have some basic queries such as this: c=db.cursor() c.execute("SELECT id, rating from video") results = c.fetchall() I need "results" to be a NumPy array, and I'm

python - What's the most efficient way to convert a MySQL result set to a NumPy array? - Stack Overflow The 2026 Annual Developer Survey is live— take the Survey today! Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives Stack Internal Knowledge at work Bring the best of human thought and AI automation together at your work. Explore Stack Internal What's the most efficient way to convert a MySQL result set to a NumPy array? Ask Question Asked 14 years, 11 months ago Modified 6 years, 9 months

Explore this link on the map →

related reading