Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doctests #268

Merged
merged 3 commits into from
Jul 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Documenter, Query
using Documenter, Query, DataFrames

makedocs(
modules = [Query],
Expand Down
6 changes: 3 additions & 3 deletions docs/src/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ println(x)

# output

1×2 DataFrames.DataFrame
1×2 DataFrame
│ Row │ name │ children │
│ │ String │ Int64 │
├─────┼────────┼──────────┤
Expand Down Expand Up @@ -54,7 +54,7 @@ println(x)

# output

1×2 DataFrames.DataFrame
1×2 DataFrame
│ Row │ name │ children │
│ │ String │ Int64 │
├─────┼────────┼──────────┤
Expand Down Expand Up @@ -102,7 +102,7 @@ println(x)

# output

1×2 DataFrames.DataFrame
1×2 DataFrame
│ Row │ name │ children │
├─────┼────────┼──────────┤
│ 1 │ "Kirk" │ 2 │
Expand Down
20 changes: 10 additions & 10 deletions docs/src/linqquerycommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ println(x)

# output

6×2 DataFrames.DataFrame
6×2 DataFrame
│ Row │ a │ b │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
Expand Down Expand Up @@ -54,7 +54,7 @@ println(x)

# output

1×3 DataFrames.DataFrame
1×3 DataFrame
│ Row │ name │ age │ children │
│ │ String │ Float64 │ Int64 │
├─────┼────────┼─────────┼──────────┤
Expand Down Expand Up @@ -101,7 +101,7 @@ println(x)

# output

3×2 DataFrames.DataFrame
3×2 DataFrame
│ Row │ name │ Age │
│ │ String │ Float64 │
├─────┼────────┼─────────┤
Expand Down Expand Up @@ -133,7 +133,7 @@ println(q)

# output

5×2 DataFrames.DataFrame
5×2 DataFrame
│ Row │ Key │ Value │
│ │ Symbol │ Int64 │
├─────┼────────┼───────┤
Expand Down Expand Up @@ -170,7 +170,7 @@ println(x)

# output

2×4 DataFrames.DataFrame
2×4 DataFrame
│ Row │ a │ b │ c │ d │
│ │ Int64 │ Float64 │ Int64 │ String │
├─────┼───────┼─────────┼───────┼────────┤
Expand Down Expand Up @@ -200,7 +200,7 @@ println(x)

# output

3×2 DataFrames.DataFrame
3×2 DataFrame
│ Row │ t1 │ t2 │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
Expand Down Expand Up @@ -231,7 +231,7 @@ println(q)

# output

4×4 DataFrames.DataFrame
4×4 DataFrame
│ Row │ a │ b │ c │ d │
│ │ Int64 │ Float64 │ Int64⍰ │ String⍰ │
├─────┼───────┼─────────┼─────────┼─────────┤
Expand Down Expand Up @@ -283,7 +283,7 @@ println(x)

# output

2×2 DataFrames.DataFrame
2×2 DataFrame
│ Row │ Key │ Count │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
Expand Down Expand Up @@ -314,7 +314,7 @@ println(x)

# output

2×4 DataFrames.DataFrame
2×4 DataFrame
│ Row │ group │ mage │ oldest │ youngest │
│ │ Symbol │ Float64 │ Float64 │ Float64 │
├─────┼────────┼─────────┼─────────┼──────────┤
Expand Down Expand Up @@ -345,7 +345,7 @@ println(x)

# output

1×3 DataFrames.DataFrame
1×3 DataFrame
│ Row │ Name │ Count │ KidsPerYear │
│ │ String │ Int64 │ Float64 │
├─────┼────────┼───────┼─────────────┤
Expand Down
2 changes: 1 addition & 1 deletion docs/src/sinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ println(x)

# output

3×3 DataFrames.DataFrame
3×3 DataFrame
│ Row │ name │ age │ Children │
│ │ String │ Float64 │ Int64 │
├─────┼────────┼─────────┼──────────┤
Expand Down
4 changes: 2 additions & 2 deletions docs/src/sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ println(x)

# output

3×3 DataFrames.DataFrame
3×3 DataFrame
│ Row │ name │ age │ children │
│ │ String │ Float64 │ Int64 │
├─────┼────────┼─────────┼──────────┤
Expand Down Expand Up @@ -51,7 +51,7 @@ println(x)

# output

3×3 DataFrames.DataFrame
3×3 DataFrame
│ Row │ name │ age │ children │
│ │ String │ Float64 │ Int64 │
├─────┼────────┼─────────┼──────────┤
Expand Down
29 changes: 19 additions & 10 deletions docs/src/standalonequerycommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ df2 = df |>
@filter(_.b > 5) |>
@orderby_descending(_.b) |>
DataFrame

# output

2×2 DataFrame
│ Row │ a │ b │
│ │ Int64 │ Float64 │
├─────┼───────┼─────────┤
│ 1 │ 3 │ 8.0 │
│ 2 │ 2 │ 6.0 │
```

## Standalone query operators
Expand Down Expand Up @@ -56,7 +65,7 @@ println(x)

# output

1×3 DataFrames.DataFrame
1×3 DataFrame
│ Row │ name │ age │ children │
│ │ String │ Float64 │ Int64 │
├─────┼────────┼─────────┼──────────┤
Expand Down Expand Up @@ -87,7 +96,7 @@ println(x)

# output

2×2 DataFrames.DataFrame
2×2 DataFrame
│ Row │ Key │ Count │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
Expand All @@ -114,7 +123,7 @@ println(x)

# output

6×2 DataFrames.DataFrame
6×2 DataFrame
│ Row │ a │ b │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
Expand Down Expand Up @@ -144,7 +153,7 @@ println(x)

# output

3×2 DataFrames.DataFrame
3×2 DataFrame
│ Row │ t1 │ t2 │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
Expand All @@ -171,7 +180,7 @@ println(x)

# output

2×4 DataFrames.DataFrame
2×4 DataFrame
│ Row │ a │ b │ c │ d │
│ │ Int64 │ Float64 │ Int64 │ String │
├─────┼───────┼─────────┼───────┼────────┤
Expand All @@ -196,7 +205,7 @@ println(q)

# output

5×2 DataFrames.DataFrame
5×2 DataFrame
│ Row │ Key │ Value │
│ │ Symbol │ Int64 │
├─────┼────────┼───────┤
Expand Down Expand Up @@ -282,7 +291,7 @@ println(q1)

# output

3×2 DataFrames.DataFrame
3×2 DataFrame
│ Row │ price │ fruit │
│ │ Float64 │ String │
├─────┼─────────┼────────┤
Expand All @@ -302,7 +311,7 @@ println(q2)

# output

3×3 DataFrames.DataFrame
3×3 DataFrame
│ Row │ price │ isyellow │ fruit │
│ │ Float64 │ Bool │ String │
├─────┼─────────┼──────────┼────────┤
Expand All @@ -326,7 +335,7 @@ println(q)

# output

3×4 DataFrames.DataFrame
3×4 DataFrame
│ Row │ name │ amount │ cost │ isyellow │
│ │ String │ Int64 │ Float64 │ Bool │
├─────┼────────┼────────┼─────────┼──────────┤
Expand All @@ -348,7 +357,7 @@ println(q)

# output

3×4 DataFrames.DataFrame
3×4 DataFrame
│ Row │ fruit │ amount │ price │ isyellow │
│ │ String │ Int64 │ Float64 │ Bool │
├─────┼────────┼────────┼─────────┼──────────┤
Expand Down