Skip to content

Commit 8f6fc44

Browse files
committed
Fix #231
1 parent 5b425b0 commit 8f6fc44

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/src/standalonequerycommands.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ println(q1)
277277
278278
# output
279279
280-
3×2 DataFrame
280+
3×2
281+
DataFrames.DataFrame
281282
│ Row │ price │ fruit │
282283
│ │ Float64 │ String │
283284
├─────┼─────────┼────────┤
@@ -287,13 +288,16 @@ println(q1)
287288
```
288289

289290
```jldoctest
291+
using Query, DataFrames
292+
290293
q2 = df |> @select(!endswith("t"), 1) |> DataFrame
291294
292295
println(q2)
293296
294297
# output
295298
296-
3×3 DataFrame
299+
3×3
300+
DataFrames.DataFrame
297301
│ Row │ price │ isyellow │ fruit │
298302
│ │ Float64 │ Bool │ String │
299303
├─────┼─────────┼──────────┼────────┤
@@ -317,7 +321,8 @@ println(q)
317321
318322
# output
319323
320-
3×4 DataFrame
324+
3×4
325+
DataFrames.DataFrame
321326
│ Row │ name │ amount │ cost │ isyellow │
322327
│ │ String │ Int64 │ Float64 │ Bool │
323328
├─────┼────────┼────────┼─────────┼──────────┤
@@ -333,13 +338,14 @@ using Query, DataFrames
333338
334339
df = DataFrame(fruit=["Apple","Banana","Cherry"],amount=[2,6,1000],price=[1.2,2.0,0.4],isyellow=[false,true,false])
335340
336-
q = df |> @mutate(price = 2 * _.price + _.amount, isyellow = fruit == "Apple") |> DataFrame
341+
q = df |> @mutate(price = 2 * _.price + _.amount, isyellow = _.fruit == "Apple") |> DataFrame
337342
338343
println(q)
339344
340345
# output
341346
342-
3×4 DataFrame
347+
3×4
348+
DataFrames.DataFrame
343349
│ Row │ fruit │ amount │ price │ isyellow │
344350
│ │ String │ Int64 │ Float64 │ Bool │
345351
├─────┼────────┼────────┼─────────┼──────────┤

0 commit comments

Comments
 (0)