points.sum(axis=0)[1]
TypeError: unsupported operand type(s) for +: 'datetime.date' and 'datetime.date'
import psycopg2
import numpy as np
query = '''SELECT date(a_time) as day, sum(total) FROM all_payment
WHERE point = '13940006'
AND op_type=3
GROUP BY day
ORDER BY day'''
conn = psycopg2.connect("dbname='***' user='***' host='***' password='***'")
cur = conn.cursor()
cur.execute(query)
rows = cur.fetchall()
points = np.full((417,2), rows)
# for row in rows:
# points = np.append(row[1], points)
points.min(axis=0)
TypeError: '<=' not supported between instances of 'datetime.date' and 'float'