diff options
Diffstat (limited to 'docs/formats.rst')
-rw-r--r-- | docs/formats.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/formats.rst b/docs/formats.rst index 489f57a..42b8cd5 100644 --- a/docs/formats.rst +++ b/docs/formats.rst @@ -21,6 +21,14 @@ When exporting with the ``csv`` format, the top row will contain headers, if they have been set. Otherwise, the top row will contain the first row of the dataset. +When importing a CSV data source or exporting a dataset as CSV, you can pass any +parameter supported by the :py:func:`csv.reader` and :py:func:`csv.writer` +functions. For example:: + + tablib.import_set(your_data_stream, format='csv', dialect='unix') + + dataset.export('csv', delimiter=' ', quotechar='|') + .. admonition:: Line endings Exporting uses \\r\\n line endings by default so, make sure to include |