Skip to content

Commit a5a7973

Browse files
committed
using columns names instead of their index
1 parent 5f8229b commit a5a7973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ julia> ds = Dataset(g1 = g1, g2 = g2, y = y)
100100
236 3 YP
101101
246 4 YP YP
102102

103-
julia> sort(ds, 2)
103+
julia> sort(ds, :g2)
104104
24×3 Sorted Dataset
105105
Sorted by: g2
106106
Row │ g1 g2 y
@@ -132,7 +132,7 @@ julia> sort(ds, 2)
132132
235 4 88 88
133133
246 4 YP YP
134134

135-
julia> tds = transpose(groupby(ds, 1), :y)
135+
julia> tds = transpose(groupby(ds, :g1), :y)
136136
6×6 Dataset
137137
Row │ g1 _variables_ _c1 _c2 _c3 _c4
138138
│ identity identity identity identity identity identity

0 commit comments

Comments
 (0)