Skip to content

Commit 83140cc

Browse files
committed
remove vec_tuple_to_DataFrame
actually not used
1 parent 1d8da1d commit 83140cc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/util.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
export toDataFrame
22

3+
"""
4+
toDataFrame(x::AbstractVector{<:SLArray})
5+
6+
Convert an Vector{SLVector} to DataFrame.
7+
8+
Such objects are returned when broadcasting on a function
9+
that retuns an SLVector.
10+
"""
311
function toDataFrame(x::AbstractVector{<:SLArray})
412
names = collect(keys(first(x)))
513
df = DataFrame(Tables.table(VectorOfArray(x)'))
614
rename!(df, names)
715
end
816

9-
function vec_tuple_to_DataFrame(data; names = string.(keys(first(data))))
10-
DataFrame(collect(map(idx -> getindex.(data, idx), eachindex(collect(first(data))))), collect(names))
11-
end
17+
# function vec_tuple_to_DataFrame(data; names = string.(keys(first(data))))
18+
# DataFrame(collect(map(idx -> getindex.(data, idx), eachindex(collect(first(data))))), collect(names))
19+
# end
1220

0 commit comments

Comments
 (0)