Skip to content

Commit ec5df71

Browse files
authored
Fix the row index display for GroupBy/GatherBy (#90)
* Fix the row index display for GroupBy/GatherBy Now the row index will be shown in numerical order, not in permutation. * Update io.jl Implemented by enumerate()
1 parent 905a853 commit ec5df71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abstractdataset/io.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ function _show(io::IO, ::MIME"text/html", ds::Union{AbstractDataset, GroupBy, Ga
268268
write(io, mainmsg)
269269

270270
end
271-
for row in _get_perms(ds)[1:mxrow]
271+
for (i, row) in enumerate(_get_perms(ds)[1:mxrow])
272272
write(io, "<tr>")
273273
if rowid === nothing
274-
write(io, "<th>$row</th>")
274+
write(io, "<th>$i</th>")
275275
else
276276
write(io, "<th>$rowid</th>")
277277
end

0 commit comments

Comments
 (0)