Skip to content

Commit

Permalink
Merge pull request #249 from Yijia-Chen/Query_macro2
Browse files Browse the repository at this point in the history
Fix doctests
  • Loading branch information
davidanthoff authored Mar 12, 2019
2 parents 195470c + a774abc commit dc5914e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docs/src/standalonequerycommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ println(q1)
# output
3×2
DataFrames.DataFrame
3×2 DataFrames.DataFrame
│ Row │ price │ fruit │
│ │ Float64 │ String │
├─────┼─────────┼────────┤
Expand All @@ -295,14 +294,15 @@ DataFrames.DataFrame
```jldoctest
using Query, DataFrames
df = DataFrame(fruit=["Apple","Banana","Cherry"],amount=[2,6,1000],price=[1.2,2.0,0.4],isyellow=[false,true,false])
q2 = df |> @select(!endswith("t"), 1) |> DataFrame
println(q2)
# output
3×3
DataFrames.DataFrame
3×3 DataFrames.DataFrame
│ Row │ price │ isyellow │ fruit │
│ │ Float64 │ Bool │ String │
├─────┼─────────┼──────────┼────────┤
Expand All @@ -326,8 +326,7 @@ println(q)
# output
3×4
DataFrames.DataFrame
3×4 DataFrames.DataFrame
│ Row │ name │ amount │ cost │ isyellow │
│ │ String │ Int64 │ Float64 │ Bool │
├─────┼────────┼────────┼─────────┼──────────┤
Expand All @@ -349,8 +348,7 @@ println(q)
# output
3×4
DataFrames.DataFrame
3×4 DataFrames.DataFrame
│ Row │ fruit │ amount │ price │ isyellow │
│ │ String │ Int64 │ Float64 │ Bool │
├─────┼────────┼────────┼─────────┼──────────┤
Expand Down

0 comments on commit dc5914e

Please sign in to comment.