table2df now handles single row tables