Postgresql Row To Array Python Size Of Data Frame In Rstudio