python csv add row

with open('document.csv','a') as fd:
    fd.write(myCsvRow)

Here is what the above code is Doing:
1. It’s opening a file called document.csv in append mode.
2. It’s writing a row of data to the file.
3. It’s closing the file.

The append mode is important. If you open a file in write mode, it will overwrite the contents of the file.