Create Numpy Array From Dataframe Column Length In Postgresql