From 21ddf9822d232658c917b62b5e0715a6731c04e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 10 Jul 2019 00:30:51 +0200 Subject: [PATCH] CSV table --- README.md | 22 +++++++++++----------- index.html | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index ef5241f..82c3a1a 100644 --- a/README.md +++ b/README.md @@ -1665,17 +1665,17 @@ import csv ### Dialects ```text -+------------------+--------+-----------+--------------+ -| | excel | excel_tab | unix_dialect | -+------------------+--------+-----------+--------------+ -| delimiter | ',' | '\t' | ',' | -| quotechar | '"' | '"' | '"' | -| doublequote | True | True | True | -| skipinitialspace | False | False | False | -| lineterminator | '\r\n' | '\r\n' | '\n' | -| quoting | 0 | 0 | 1 | -| escapechar | None | None | None | -+------------------+--------+-----------+--------------+ ++------------------+---------+-----------+--------------+ +| | excel | excel_tab | unix_dialect | ++------------------+---------+-----------+--------------+ +| delimiter | ',' | '\t' | ',' | +| quotechar | '"' | '"' | '"' | +| doublequote | True | True | True | +| skipinitialspace | False | False | False | +| lineterminator | '\r\n' | '\r\n' | '\n' | +| quoting | 0 | 0 | 1 | +| escapechar | None | None | None | ++------------------+---------+-----------+--------------+ ``` ### Read Rows from CSV File diff --git a/index.html b/index.html index 82d7fa2..85280db 100644 --- a/index.html +++ b/index.html @@ -1486,17 +1486,17 @@ os.replace(from, to) 'escapechar' - Character for escaping quotechar if doublequote is false.

Dialects

-
+------------------+--------+-----------+--------------+
-|                  | excel  | excel_tab | unix_dialect |
-+------------------+--------+-----------+--------------+
-| delimiter        | ','    |   '\t'    |     ','      |
-| quotechar        | '"'    |   '"'     |     '"'      |
-| doublequote      | True   |   True    |     True     |
-| skipinitialspace | False  |   False   |     False    |
-| lineterminator   | '\r\n' |   '\r\n'  |     '\n'     |
-| quoting          | 0      |   0       |     1        |
-| escapechar       | None   |   None    |     None     |
-+------------------+--------+-----------+--------------+
+
+------------------+---------+-----------+--------------+
+|                  |  excel  | excel_tab | unix_dialect |
++------------------+---------+-----------+--------------+
+| delimiter        | ','     |  '\t'     |    ','       |
+| quotechar        | '"'     |  '"'      |    '"'       |
+| doublequote      | True    |  True     |    True      |
+| skipinitialspace | False   |  False    |    False     |
+| lineterminator   | '\r\n'  |  '\r\n'   |    '\n'      |
+| quoting          | 0       |  0        |    1         |
+| escapechar       | None    |  None     |    None      |
++------------------+---------+-----------+--------------+
 

Read Rows from CSV File

def read_csv_file(filename):