Convert data row by row