You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/linqquerycommands.md
+60-60Lines changed: 60 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,15 @@ println(x)
22
22
# output
23
23
24
24
6×2 DataFrame
25
-
│ Row │ a │ b │
26
-
│ │ Int64 │ Int64 │
27
-
├─────┼───────┼───────┤
28
-
│ 1 │ 3 │ 2 │
29
-
│ 2 │ 2 │ 1 │
30
-
│ 3 │ 2 │ 2 │
31
-
│ 4 │ 1 │ 1 │
32
-
│ 5 │ 1 │ 2 │
33
-
│ 6 │ 1 │ 3 │
25
+
Row │ a b
26
+
│ Int64 Int64
27
+
─────┼──────────────
28
+
1 │ 3 2
29
+
2 │ 2 1
30
+
3 │ 2 2
31
+
4 │ 1 1
32
+
5 │ 1 2
33
+
6 │ 1 3
34
34
```
35
35
36
36
## Filtering
@@ -55,10 +55,10 @@ println(x)
55
55
# output
56
56
57
57
1×3 DataFrame
58
-
│ Row │ name │ age │ children │
59
-
│ │ String │ Float64 │ Int64 │
60
-
├─────┼────────┼─────────┼──────────┤
61
-
│ 1 │ Sally │ 42.0 │ 5 │
58
+
Row │ name age children
59
+
│ String Float64 Int64
60
+
─────┼───────────────────────────
61
+
1 │ Sally 42.0 5
62
62
```
63
63
64
64
## Projecting
@@ -102,12 +102,12 @@ println(x)
102
102
# output
103
103
104
104
3×2 DataFrame
105
-
│ Row │ name │ Age │
106
-
│ │ String │ Float64 │
107
-
├─────┼────────┼─────────┤
108
-
│ 1 │ John │ 23.0 │
109
-
│ 2 │ Sally │ 42.0 │
110
-
│ 3 │ Kirk │ 59.0 │
105
+
Row │ name Age
106
+
│ String Float64
107
+
─────┼─────────────────
108
+
1 │ John 23.0
109
+
2 │ Sally 42.0
110
+
3 │ Kirk 59.0
111
111
```
112
112
113
113
The elements of the new named tuple are separated by commas `,`. One can specify an explicit name for an individual element of a named tuple using the `=` syntax, where the name of the element is specified as the left argument and the value as the right argument. If the name of the element should be the same as the variable that is passed for the value, one doesn't have to specify a name explicitly, instead the `{}` syntax automatically infers the name.
0 commit comments