Add convert to DataFrame fn and give group flag for trangents