M
M
Murad Nurmagomedov2018-03-04 03:54:32
Python
Murad Nurmagomedov, 2018-03-04 03:54:32

Why don't NumPy's aggregation functions work?

Hello!
I pulled the database out of the database, loaded them into a NumPy array, with the function:
points = np.asarray(rows)
The resulting array looks like this for some reason:
[[datetime.date(2016, 10, 7) 150.0]
[datetime.date(2016, 10, 8) 760.0]
.. .]
Now, I want to aggregate data from the second column, for this I do this: But for some reason I get a similar error:
x = points.min(axis=1)

TypeError: '<=' not supported between instances of 'datetime.date' and 'float'

Help, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Andy_U, 2018-03-04
@murad1986

axis=0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question