Skip to content

Commit 9a0c318

Browse files
committed
CSV table
1 parent 9051dac commit 9a0c318

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,17 +1665,17 @@ import csv
16651665

16661666
### Dialects
16671667
```text
1668-
+------------------+---------+-----------+--------------+
1669-
| | excel | excel_tab | unix_dialect |
1670-
+------------------+---------+-----------+--------------+
1671-
| delimiter | ',' | '\t' | ',' |
1672-
| quotechar | '"' | '"' | '"' |
1673-
| doublequote | True | True | True |
1674-
| skipinitialspace | False | False | False |
1675-
| lineterminator | '\r\n' | '\r\n' | '\n' |
1676-
| quoting | 0 | 0 | 1 |
1677-
| escapechar | None | None | None |
1678-
+------------------+---------+-----------+--------------+
1668+
+------------------+-----------+-----------+--------------+
1669+
| | excel | excel_tab | unix_dialect |
1670+
+------------------+-----------+-----------+--------------+
1671+
| delimiter | ',' | '\t' | ',' |
1672+
| quotechar | '"' | '"' | '"' |
1673+
| doublequote | True | True | True |
1674+
| skipinitialspace | False | False | False |
1675+
| lineterminator | '\r\n' | '\r\n' | '\n' |
1676+
| quoting | 0 | 0 | 1 |
1677+
| escapechar | None | None | None |
1678+
+------------------+-----------+-----------+--------------+
16791679
```
16801680

16811681
### Read Rows from CSV File

index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,17 +1486,17 @@ <h3 id="parameters">Parameters</h3>
14861486
<li><strong><code class="python hljs"><span class="hljs-string">'escapechar'</span></code> - Character for escaping quotechar if doublequote is false.</strong></li>
14871487
</ul>
14881488
<h3 id="dialects">Dialects</h3>
1489-
<pre><code class="text language-text">+------------------+---------+-----------+--------------+
1490-
| | excel | excel_tab | unix_dialect |
1491-
+------------------+---------+-----------+--------------+
1492-
| delimiter | ',' | '\t' | ',' |
1493-
| quotechar | '"' | '"' | '"' |
1494-
| doublequote | True | True | True |
1495-
| skipinitialspace | False | False | False |
1496-
| lineterminator | '\r\n' | '\r\n' | '\n' |
1497-
| quoting | 0 | 0 | 1 |
1498-
| escapechar | None | None | None |
1499-
+------------------+---------+-----------+--------------+
1489+
<pre><code class="text language-text">+------------------+-----------+-----------+--------------+
1490+
| | excel | excel_tab | unix_dialect |
1491+
+------------------+-----------+-----------+--------------+
1492+
| delimiter | ',' | '\t' | ',' |
1493+
| quotechar | '"' | '"' | '"' |
1494+
| doublequote | True | True | True |
1495+
| skipinitialspace | False | False | False |
1496+
| lineterminator | '\r\n' | '\r\n' | '\n' |
1497+
| quoting | 0 | 0 | 1 |
1498+
| escapechar | None | None | None |
1499+
+------------------+-----------+-----------+--------------+
15001500
</code></pre>
15011501
<h3 id="readrowsfromcsvfile">Read Rows from CSV File</h3>
15021502
<pre><code class="python language-python hljs"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">read_csv_file</span><span class="hljs-params">(filename)</span>:</span>

web/script_2.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,22 @@ const DIAGRAM_8_B =
144144
" └── UnicodeError <span class='hljs-comment'># Raised when encoding/decoding strings from/to bytes fails.</span>\n";
145145

146146
const DIAGRAM_9_A =
147-
'+------------------+---------+-----------+--------------+\n' +
148-
'| | excel | excel_tab | unix_dialect |\n' +
149-
'+------------------+---------+-----------+--------------+\n';
147+
'+------------------+-----------+-----------+--------------+\n' +
148+
'| | excel | excel_tab | unix_dialect |\n' +
149+
'+------------------+-----------+-----------+--------------+\n';
150150

151151
const DIAGRAM_9_B =
152-
"┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" +
153-
"┃ │ excel │ excel_tab │ unix_dialect ┃\n" +
154-
"┠──────────────────┼─────────┼───────────┼──────────────┨\n" +
155-
"┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" +
156-
"┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" +
157-
"┃ doublequote │ True │ True │ True ┃\n" +
158-
"┃ skipinitialspace │ False │ False │ False ┃\n" +
159-
"┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" +
160-
"┃ quoting │ 0 │ 0 │ 1 ┃\n" +
161-
"┃ escapechar │ None │ None │ None ┃\n" +
162-
"┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n";
152+
"┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" +
153+
"┃ │ excel │ excel_tab │ unix_dialect ┃\n" +
154+
"┠──────────────────┼───────────┼───────────┼──────────────┨\n" +
155+
"┃ delimiter │ ',' │ '\t' │ ',' ┃\n" +
156+
"┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" +
157+
"┃ doublequote │ True │ True │ True ┃\n" +
158+
"┃ skipinitialspace │ False │ False │ False ┃\n" +
159+
"┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" +
160+
"┃ quoting │ 0 │ 0 │ 1 ┃\n" +
161+
"┃ escapechar │ None │ None │ None ┃\n" +
162+
"┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n";
163163

164164

165165
// isFontAvailable:

0 commit comments

Comments
 (0)