From 3659d26260b6b4dca81f113c5c9c0afdb951219a Mon Sep 17 00:00:00 2001 From: "[Yijia Chen]" Date: Sun, 10 Mar 2019 19:49:55 -0700 Subject: [PATCH] Resolve doc test errors --- docs/src/standalonequerycommands.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/src/standalonequerycommands.md b/docs/src/standalonequerycommands.md index 6a585717..421123f9 100644 --- a/docs/src/standalonequerycommands.md +++ b/docs/src/standalonequerycommands.md @@ -277,8 +277,7 @@ println(q1) # output -3×2 -DataFrames.DataFrame +3×2 DataFrames.DataFrame │ Row │ price │ fruit │ │ │ Float64 │ String │ ├─────┼─────────┼────────┤ @@ -290,14 +289,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 │ ├─────┼─────────┼──────────┼────────┤ @@ -321,8 +321,7 @@ println(q) # output -3×4 -DataFrames.DataFrame +3×4 DataFrames.DataFrame │ Row │ name │ amount │ cost │ isyellow │ │ │ String │ Int64 │ Float64 │ Bool │ ├─────┼────────┼────────┼─────────┼──────────┤ @@ -344,8 +343,7 @@ println(q) # output -3×4 -DataFrames.DataFrame +3×4 DataFrames.DataFrame │ Row │ fruit │ amount │ price │ isyellow │ │ │ String │ Int64 │ Float64 │ Bool │ ├─────┼────────┼────────┼─────────┼──────────┤