julia> DataFrame([1 0; 2 0], :auto)
2×2 DataFrame
Row │ x1 x2
│ Int64 Int64
─────┼──────────────
1 │ 1 0
2 │ 2 0
Recently, the :auto
symbol can be used to above result. I want new feature like this:
julia> x = [1,0]
2-element Vector{Int64}:
1
0
julia> y = [2,0]
2-element Vector{Int64}:
2
0
julia> DataFrame(x, y, :auto)
2×2 DataFrame
Row │ x y
│ Int64 Int64
─────┼──────────────
1 │ 1 0
2 │ 2 0
For example, below long assignment frequently used in my work:
time_evolution = DataFrame(
n_S_ = n_S_, n_E_ = n_E_, n_I_ = n_I_, n_R_ = n_R_, n_V_ = n_V_, n_hub_ = n_hub_, RT_ = RT_,
S_influx_ = S_influx_, I_influx_ = I_influx_, E_influx_ = E_influx_, R_influx_ = R_influx_, V_influx_ = V_influx_,
S_outflux_ = S_outflux_, I_outflux_ = I_outflux_, E_outflux_ = E_outflux_, R_outflux_ = R_outflux_, V_outflux_ = V_outflux_
)
I wanna write that like below:
time_evolution = DataFrame(
n_S_, n_E_, n_I_, n_R_, n_V_, n_hub, RT_,
S_influx_, I_influx_, E_influx_, R_influx_, V_influx_,
S_outflux_, I_outflux_, E_outflux_, R_outflux_, V_outflux_,
:auto
)
How about that?