Skip to content

Commit dc5914e

Browse files
authored
Merge pull request #249 from Yijia-Chen/Query_macro2
Fix doctests
2 parents 195470c + a774abc commit dc5914e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/src/standalonequerycommands.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@ println(q1)
282282
283283
# output
284284
285-
3×2
286-
DataFrames.DataFrame
285+
3×2 DataFrames.DataFrame
287286
│ Row │ price │ fruit │
288287
│ │ Float64 │ String │
289288
├─────┼─────────┼────────┤
@@ -295,14 +294,15 @@ DataFrames.DataFrame
295294
```jldoctest
296295
using Query, DataFrames
297296
297+
df = DataFrame(fruit=["Apple","Banana","Cherry"],amount=[2,6,1000],price=[1.2,2.0,0.4],isyellow=[false,true,false])
298+
298299
q2 = df |> @select(!endswith("t"), 1) |> DataFrame
299300
300301
println(q2)
301302
302303
# output
303304
304-
3×3
305-
DataFrames.DataFrame
305+
3×3 DataFrames.DataFrame
306306
│ Row │ price │ isyellow │ fruit │
307307
│ │ Float64 │ Bool │ String │
308308
├─────┼─────────┼──────────┼────────┤
@@ -326,8 +326,7 @@ println(q)
326326
327327
# output
328328
329-
3×4
330-
DataFrames.DataFrame
329+
3×4 DataFrames.DataFrame
331330
│ Row │ name │ amount │ cost │ isyellow │
332331
│ │ String │ Int64 │ Float64 │ Bool │
333332
├─────┼────────┼────────┼─────────┼──────────┤
@@ -349,8 +348,7 @@ println(q)
349348
350349
# output
351350
352-
3×4
353-
DataFrames.DataFrame
351+
3×4 DataFrames.DataFrame
354352
│ Row │ fruit │ amount │ price │ isyellow │
355353
│ │ String │ Int64 │ Float64 │ Bool │
356354
├─────┼────────┼────────┼─────────┼──────────┤

0 commit comments

Comments
 (0)