M
M
Murad Nurmagomedov2018-02-11 23:44:17
Python
Murad Nurmagomedov, 2018-02-11 23:44:17

How to populate a Numpy array with data from a database?

I want to fill an array of NumPy type with data received from a PostgreSQL database.
How to make an empty NumPy array and add data there?
Tried to do that, but didn't work.

points = np.array(0)

for row in rows:
    np.append(points, row)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question