Difference between writerow() and writerows() methods of Python csv module
writerow takes an iterable of cells to write: writerows takes an iterable of iterables of cells to write: So writerow takes 1-dimensional data (one row), and writerows takes 2-dimensional data (multiple rows).