Skip to content

Commit 7bf3d1e

Browse files
committed
Fix doc tests
1 parent 340a5a4 commit 7bf3d1e

File tree

5 files changed

+191
-191
lines changed

5 files changed

+191
-191
lines changed

docs/src/gettingstarted.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ println(x)
2121
# output
2222
2323
1×2 DataFrame
24-
Row │ name children
25-
│ String Int64
26-
─────┼──────────────────
27-
│ 1 │ Kirk │ 2
24+
Row │ name children
25+
│ String Int64
26+
─────┼──────────────────
27+
1 │ Kirk 2
2828
```
2929

3030
Note the shorthand syntax `_.age>50` for the anonymous function `i->i.age>50`.
@@ -58,10 +58,10 @@ println(x)
5858
# output
5959
6060
1×2 DataFrame
61-
Row │ name children
62-
│ String Int64
63-
─────┼──────────────────
64-
│ 1 │ Kirk │ 2
61+
Row │ name children
62+
│ String Int64
63+
─────┼──────────────────
64+
1 │ Kirk 2
6565
```
6666

6767

docs/src/linqquerycommands.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ println(x)
2222
# output
2323
2424
6×2 DataFrame
25-
Row │ a │ b │
26-
│ Int64 Int64
27-
─────┼──────────────
28-
│ 1 3 │ 2
29-
│ 2 2 │ 1
30-
│ 3 2 2
31-
│ 4 1 1
32-
│ 5 1 │ 2
33-
│ 6 1 │ 3
25+
Row │ a b
26+
│ Int64 Int64
27+
─────┼──────────────
28+
13 2
29+
22 1
30+
3 │ 2 2
31+
4 │ 1 1
32+
51 2
33+
61 3
3434
```
3535

3636
## Filtering
@@ -55,10 +55,10 @@ println(x)
5555
# output
5656
5757
1×3 DataFrame
58-
Row │ name age children
59-
│ String Float64 Int64
60-
─────┼───────────────────────────
61-
│ 1 │ Sally 42.0 │ 5
58+
Row │ name age children
59+
│ String Float64 Int64
60+
─────┼───────────────────────────
61+
1 │ Sally 42.0 5
6262
```
6363

6464
## Projecting
@@ -102,12 +102,12 @@ println(x)
102102
# output
103103
104104
3×2 DataFrame
105-
Row │ name Age
106-
│ String Float64
107-
─────┼─────────────────
108-
│ 1 │ John │ 23.0
109-
│ 2 │ Sally │ 42.0
110-
│ 3 │ Kirk │ 59.0
105+
Row │ name Age
106+
│ String Float64
107+
─────┼─────────────────
108+
1 │ John 23.0
109+
2 │ Sally 42.0
110+
3 │ Kirk 59.0
111111
```
112112

113113
The elements of the new named tuple are separated by commas `,`. One can specify an explicit name for an individual element of a named tuple using the `=` syntax, where the name of the element is specified as the left argument and the value as the right argument. If the name of the element should be the same as the variable that is passed for the value, one doesn't have to specify a name explicitly, instead the `{}` syntax automatically infers the name.
@@ -134,14 +134,14 @@ println(q)
134134
# output
135135
136136
5×2 DataFrame
137-
Row │ Key Value
138-
│ Symbol Int64
139-
─────┼───────────────
140-
│ 1 │ a │ 1
141-
│ 2 │ a │ 2
142-
│ 3 │ a │ 3
143-
│ 4 │ b │ 4
144-
│ 5 │ b │ 5
137+
Row │ Key Value
138+
│ Symbol Int64
139+
─────┼───────────────
140+
1 │ a 1
141+
2 │ a 2
142+
3 │ a 3
143+
4 │ b 4
144+
5 │ b 5
145145
```
146146

147147
## Joining
@@ -171,11 +171,11 @@ println(x)
171171
# output
172172
173173
2×4 DataFrame
174-
Row │ a b c │ d │
175-
│ Int64 Float64 Int64 String
176-
─────┼───────────────────────────────
177-
│ 1 2 │ 2.0 │ 2 │ John │
178-
│ 2 2 │ 2.0 │ 2 │ Sally │
174+
Row │ a b c d
175+
│ Int64 Float64 Int64 String
176+
─────┼───────────────────────────────
177+
12 2.0 2 John
178+
22 2.0 2 Sally
179179
```
180180

181181
### Group join
@@ -201,12 +201,12 @@ println(x)
201201
# output
202202
203203
3×2 DataFrame
204-
Row │ t1 t2
205-
│ Int64 Int64
206-
─────┼──────────────
207-
│ 1 1 │ 0
208-
│ 2 2 2
209-
│ 3 3 │ 0
204+
Row │ t1 t2
205+
│ Int64 Int64
206+
─────┼──────────────
207+
11 0
208+
2 │ 2 2
209+
33 0
210210
```
211211

212212
### Left outer join
@@ -232,13 +232,13 @@ println(q)
232232
# output
233233
234234
4×4 DataFrame
235-
Row │ a b c │ d │
236-
│ Int64 Float64 Int64⍰ │ String⍰ │
237-
─────┼──────────────────────────────────
238-
│ 1 │ 1 1.0 missing missing
239-
│ 2 2 │ 2.0 │ 2 │ John │
240-
│ 3 2 │ 2.0 │ 2 │ Sally │
241-
│ 4 │ 3 3.0 missing missing
235+
Row │ a b c d
236+
│ Int64 Float64 Int64? String?
237+
─────┼──────────────────────────────────
238+
1 1 1.0 missing missing
239+
22 2.0 2 John
240+
32 2.0 2 Sally
241+
4 3 3.0 missing missing
242242
```
243243

244244
## Grouping
@@ -263,7 +263,7 @@ println(x)
263263
264264
# output
265265
266-
Grouping{Int64,String}[["John"], ["Sally", "Kirk"]]
266+
Grouping{Int64, String}[["John"], ["Sally", "Kirk"]]
267267
```
268268

269269
This is an example of a `@group` statement with an `into` clause:
@@ -284,11 +284,11 @@ println(x)
284284
# output
285285
286286
2×2 DataFrame
287-
Row │ Key Count
288-
│ Int64 Int64
289-
─────┼──────────────
290-
│ 1 3 │ 1
291-
│ 2 2 2
287+
Row │ Key Count
288+
│ Int64 Int64
289+
─────┼──────────────
290+
13 1
291+
2 │ 2 2
292292
```
293293

294294
## Split-Apply-Combine (a.k.a. `dplyr`)
@@ -315,11 +315,11 @@ println(x)
315315
# output
316316
317317
2×4 DataFrame
318-
Row │ group mage oldest youngest
319-
│ Symbol Float64 Float64 Float64
320-
─────┼────────────────────────────────────
321-
│ 1 │ a 20.0 30.0 10.0
322-
│ 2 │ b 23.0 33.0 13.0
318+
Row │ group mage oldest youngest
319+
│ Symbol Float64 Float64 Float64
320+
─────┼────────────────────────────────────
321+
1 │ a 20.0 30.0 10.0
322+
2 │ b 23.0 33.0 13.0
323323
```
324324

325325
## Range variables
@@ -346,8 +346,8 @@ println(x)
346346
# output
347347
348348
1×3 DataFrame
349-
Row │ Name Count KidsPerYear
350-
│ String Int64 Float64
351-
─────┼────────────────────────────
352-
│ 1 │ Sally │ 5 │ 0.047619
349+
Row │ Name Count KidsPerYear
350+
│ String Int64 Float64
351+
─────┼────────────────────────────
352+
1 │ Sally 5 0.047619
353353
```

docs/src/sinks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ println(x)
4646
# output
4747
4848
3×3 DataFrame
49-
Row │ name age Children
50-
│ String Float64 Int64
51-
─────┼───────────────────────────
52-
│ 1 │ John 23.0 │ 3
53-
│ 2 │ Sally 42.0 │ 5
54-
│ 3 │ Kirk 59.0 │ 2
49+
Row │ name age Children
50+
│ String Float64 Int64
51+
─────┼───────────────────────────
52+
1 │ John 23.0 3
53+
2 │ Sally 42.0 5
54+
3 │ Kirk 59.0 2
5555
```
5656

5757
## Dict
@@ -74,7 +74,7 @@ println(x)
7474
7575
# output
7676
77-
Dict("Sally" => 5,"John" => 3,"Kirk" => 2)
77+
Dict("Sally" => 5, "John" => 3, "Kirk" => 2)
7878
````
7979

8080
## TimeArray

docs/src/sources.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ println(x)
2323
# output
2424
2525
3×3 DataFrame
26-
Row │ name age children
27-
│ String Float64 Int64
28-
─────┼───────────────────────────
29-
│ 1 │ John 23.0 │ 3
30-
│ 2 │ Sally 42.0 │ 5
31-
│ 3 │ Kirk 59.0 │ 2
26+
Row │ name age children
27+
│ String Float64 Int64
28+
─────┼───────────────────────────
29+
1 │ John 23.0 3
30+
2 │ Sally 42.0 5
31+
3 │ Kirk 59.0 2
3232
```
3333

3434
## TypedTable
@@ -52,12 +52,12 @@ println(x)
5252
# output
5353
5454
3×3 DataFrame
55-
Row │ name age children
56-
│ String Float64 Int64
57-
─────┼───────────────────────────
58-
│ 1 │ John 23.0 │ 3
59-
│ 2 │ Sally 42.0 │ 5
60-
│ 3 │ Kirk 59.0 │ 2
55+
Row │ name age children
56+
│ String Float64 Int64
57+
─────┼───────────────────────────
58+
1 │ John 23.0 3
59+
2 │ Sally 42.0 5
60+
3 │ Kirk 59.0 2
6161
```
6262

6363
## Arrays
@@ -88,7 +88,7 @@ println(result)
8888
8989
# output
9090
91-
NamedTuple{(:Name, :Friendcount),Tuple{String,Int64}}[(Name = "John", Friendcount = 3)]
91+
NamedTuple{(:Name, :Friendcount), Tuple{String, Int64}}[(Name = "John", Friendcount = 3)]
9292
```
9393

9494
## IndexedTables

0 commit comments

Comments
 (0)