Does SQLALCHEMY has a function to be used in queries for array_length?
ie:
ssn.query(models.MedicationLog.dose_date,
func.array_length(models.MedicationLog.
dose_taken_times).label('dose_taken_times'))
array_agg? Here is a SO Post about how to use this.array_lengthtakes two argumentsarray_length(array, dimension)