On this page
csv.excel_tab
Prev: csv.excel | Up: csv | Next: csv.field_size_limit
Rel: csv.Dialect, csv.DictReader, csv.DictWriter, csv.Error
Ref: docs.python.org — csv.excel_tab
Tags: #public #python3 #stdlib #csv
Import
import csv
from csv import excel_tab
Signature & Overview
csv.excel_tab()
Describe the usual properties of Excel-generated TAB-delimited files.
Usage
import csv
import io
rows = list(csv.reader(io.StringIO("a\tb\n1\t2\n"), dialect=csv.excel_tab))
assert rows == [["a", "b"], ["1", "2"]]
Gotchas
- Shortcut for TSV files: Equivalent to
dialect="excel-tab"(comma replaced by\t).
REPL Inspect
from csv import excel_tab
help(excel_tab)
Linked from
Related notes
- tuts/python3/stdlib_module/csv/excel Linked here; links to this page; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/field_size_limit Linked here; links to this page; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/csv/Dialect Linked here; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/DictReader Linked here; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/DictWriter Linked here; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/Error Linked here; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/get_dialect shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/list_dialects shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/reader shared tags: #csv, #stdlib