Commit 240cbf4
authored
Move examples in arrow-csv to docstrings, polish up docs (#9001)
# Which issue does this PR close?
# Rationale for this change
while reviewing @xanderbailey's PR in
#8960, I found that there are
examples for arrow-csv and they are hard to find. Also each example add
extra binaries and thus slows down CI and tests. For example the
`whitespace_handling` example makes a new 2.9MB binary:
```shell
cargo run -p arrow-csv --example whitespace_handling
...
du -s -h target/debug/examples/whitespace_handling
2.9M target/debug/examples/whitespace_handling
```
Let's consolidate the examples to make them easier to find
# What changes are included in this PR?
1. Consolidate the examples
2. Improver other csv docs
# Are these changes tested?
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
3. Serve as another way to document the expected behavior of the code
# Are there any user-facing changes?
Docs only, no functional changes1 parent 3b097a5 commit 240cbf4
File tree
6 files changed
+71
-201
lines changed- arrow-csv
- examples
- src
- reader
6 files changed
+71
-201
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
45 | 85 | | |
46 | 86 | | |
47 | 87 | | |
| |||
441 | 481 | | |
442 | 482 | | |
443 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
444 | 487 | | |
445 | 488 | | |
446 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
447 | 493 | | |
448 | 494 | | |
449 | 495 | | |
450 | | - | |
451 | 496 | | |
452 | 497 | | |
453 | 498 | | |
| |||
1053 | 1098 | | |
1054 | 1099 | | |
1055 | 1100 | | |
1056 | | - | |
| 1101 | + | |
1057 | 1102 | | |
1058 | 1103 | | |
1059 | 1104 | | |
| |||
1071 | 1116 | | |
1072 | 1117 | | |
1073 | 1118 | | |
1074 | | - | |
| 1119 | + | |
1075 | 1120 | | |
1076 | | - | |
| 1121 | + | |
| 1122 | + | |
1077 | 1123 | | |
1078 | 1124 | | |
1079 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
| |||
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 106 | | |
120 | 107 | | |
121 | 108 | | |
| |||
126 | 113 | | |
127 | 114 | | |
128 | 115 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
142 | 121 | | |
143 | 122 | | |
144 | 123 | | |
| |||
220 | 199 | | |
221 | 200 | | |
222 | 201 | | |
| 202 | + | |
| 203 | + | |
223 | 204 | | |
224 | 205 | | |
225 | 206 | | |
| |||
248 | 229 | | |
249 | 230 | | |
250 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
251 | 235 | | |
252 | 236 | | |
253 | 237 | | |
254 | 238 | | |
255 | 239 | | |
256 | | - | |
| 240 | + | |
257 | 241 | | |
258 | 242 | | |
259 | 243 | | |
| |||
418 | 402 | | |
419 | 403 | | |
420 | 404 | | |
421 | | - | |
| 405 | + | |
422 | 406 | | |
423 | | - | |
| 407 | + | |
| 408 | + | |
424 | 409 | | |
425 | 410 | | |
426 | 411 | | |
| |||
0 commit comments