|
56 | 56 |
|
57 | 57 | <body> |
58 | 58 | <header> |
59 | | - <aside>May 13, 2025</aside> |
| 59 | + <aside>May 16, 2025</aside> |
60 | 60 | <a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
61 | 61 | </header> |
62 | 62 |
|
|
1527 | 1527 | </code></pre></div> |
1528 | 1528 |
|
1529 | 1529 | <ul> |
1530 | | -<li><strong>File must be opened with a <code class="python hljs"><span class="hljs-string">'newline=""'</span></code> argument, or all '\r\n' sequences inside quoted fields will get converted to '\n'!</strong></li> |
| 1530 | +<li><strong>File must be opened with a <code class="python hljs"><span class="hljs-string">'newline=""'</span></code> argument, or every '\r\n' sequence that is embedded inside a quoted field will get converted to '\n'!</strong></li> |
1531 | 1531 | <li><strong>To print the spreadsheet to the console use <a href="#table">Tabulate</a> library.</strong></li> |
1532 | 1532 | <li><strong>For XML and binary Excel files (xlsx, xlsm and xlsb) use <a href="#dataframeplotencodedecode">Pandas</a> library.</strong></li> |
1533 | 1533 | <li><strong>Reader accepts any collection of strings, not just files.</strong></li> |
|
1543 | 1543 | </ul> |
1544 | 1544 | <div><h3 id="parameters">Parameters</h3><ul> |
1545 | 1545 | <li><strong><code class="python hljs"><span class="hljs-string">'dialect'</span></code> - Master parameter that sets the default values. String or a 'csv.Dialect' object.</strong></li> |
1546 | | -<li><strong><code class="python hljs"><span class="hljs-string">'delimiter'</span></code> - A one-character string used to separate fields.</strong></li> |
| 1546 | +<li><strong><code class="python hljs"><span class="hljs-string">'delimiter'</span></code> - A one-character string that separates fields (comma, tab, semicolon, etc.).</strong></li> |
1547 | 1547 | <li><strong><code class="python hljs"><span class="hljs-string">'lineterminator'</span></code> - How writer terminates rows. Reader looks for '\n', '\r' and '\r\n'.</strong></li> |
1548 | 1548 | <li><strong><code class="python hljs"><span class="hljs-string">'quotechar'</span></code> - Character for quoting fields containing delimiters, quotechars, '\n' or '\r'.</strong></li> |
1549 | | -<li><strong><code class="python hljs"><span class="hljs-string">'escapechar'</span></code> - Character for escaping quotechars.</strong></li> |
| 1549 | +<li><strong><code class="python hljs"><span class="hljs-string">'escapechar'</span></code> - Character for escaping quotechars (not needed if doublequote is True).</strong></li> |
1550 | 1550 | <li><strong><code class="python hljs"><span class="hljs-string">'doublequote'</span></code> - Whether quotechars inside fields are/get doubled or escaped.</strong></li> |
1551 | 1551 | <li><strong><code class="python hljs"><span class="hljs-string">'quoting'</span></code> - 0: As necessary, 1: All, 2: All but numbers which are read as floats, 3: None.</strong></li> |
1552 | 1552 | <li><strong><code class="python hljs"><span class="hljs-string">'skipinitialspace'</span></code> - Is space character at the start of the field stripped by the reader.</strong></li> |
@@ -2945,7 +2945,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment |
2945 | 2945 |
|
2946 | 2946 |
|
2947 | 2947 | <footer> |
2948 | | - <aside>May 13, 2025</aside> |
| 2948 | + <aside>May 16, 2025</aside> |
2949 | 2949 | <a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
2950 | 2950 | </footer> |
2951 | 2951 |
|
|
0 commit comments