Answer the question
In order to leave comments, you need to log in
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'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question