On this page
csv.excel
Prev: csv.Error | Up: csv | Next: csv.excel_tab
Rel: csv.Dialect, csv.DictReader, csv.DictWriter, csv.Error
Ref: docs.python.org — csv.excel
Tags: #public #python3 #stdlib #csv
Import
import csv
from csv import excel
Signature & Overview
csv.excel()
Describe the usual properties of Excel-generated CSV files.
Usage
import csv
import io
rows = list(csv.reader(io.StringIO('a,"b,c"\n'), dialect=csv.excel))
assert rows == [["a", "b,c"]]
Gotchas
- Default dialect (
dialect="excel"): Uses comma delimiter, double-quote quoting, and\r\nline endings.
REPL Inspect
from csv import excel
help(excel)
Linked from
Related notes
- tuts/python3/stdlib_module/csv/Dialect Linked here; links to this page; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/DictReader Linked here; links to this page; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/DictWriter Linked here; links to this page; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/Error Linked here; links to this page; shared tags: #csv, #stdlib
- tuts/python3/stdlib_module/csv/excel_tab 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/field_size_limit 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