On this page
  1. csv.excel_tab
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from csv import excel_tab
help(excel_tab)

Linked from

Related notes