3 ms·
You can index rows in DataFrames in the same way you index rows in matrices: julia> df = DataFrame(x = 1:10, y=2:11) julia> df[1,:] DataFrameRow │ Row │ x
by cmcaine 7y ago
You can index rows in DataFrames in the same way you index rows in matrices:
julia> df = DataFrame(x = 1:10, y=2:11)
julia> df[1,:]
DataFrameRow
│ Row │ x │ y │
│ │ Int64 │ Int64 │
├─────┼───────┼───────┤
│ 1 │ 1 │ 2 │
julia> m = rand(10, 2);
julia> m[3,:]
2-element Array{Float64,1}:
0.013457628869001814
0.2632480919750453
As for static typing/static analysis, that's something that can be built inside Julia (and several projects have done so). Personally, I would not want Julia to insist on static typing and much power comes from not overspecifying types.