Sorry, this is wrong. Given that it didn’t work above, I should have tried
speed_df = rename!(speed_df, :param => param).
Edit: Below is wrong.
I even tried
speed_df = rename!(speed_df, :param => key),
but it returned with
LoadError: MethodError: no method matching rename!(::DataFrame, ::Vector{Pair{Symbol, Float64}})
Closest candidates are:
rename!(::AbstractDataFrame, !Matched::AbstractVector{Symbol}; makeunique) at /home/wesley/.julia/packages/DataFrames/zXEKU/src/abstractdataframe/abstractdataframe.jl:170
rename!(::AbstractDataFrame, !Matched::AbstractVector{var"#s3"} where var"#s3"<:AbstractString; makeunique) at /home/wesley/.julia/packages/DataFrames/zXEKU/src/abstractdataframe/abstractdataframe.jl:176
rename!(::AbstractDataFrame, !Matched::AbstractVector{Pair{Symbol, Symbol}}) at /home/wesley/.julia/packages/DataFrames/zXEKU/src/abstractdataframe/abstractdataframe.jl:182
…
in expression starting at /home/wesley/repos/pde/juliatest.jl:149
rename!(df::DataFrame, args::Pair{Symbol, Float64}) at abstractdataframe.jl:208
calc_speed(df::DataFrame, h::Float64, k::Float64, param::String, key::Float64) at juliatest.jl:86
process(a::Int64, b::Int64, T::Int64, t_steps::Int64, param::String, r_start::Float64, r_end::Int64, r_length::Int64) at juliatest.jl:142
top-level scope at juliatest.jl:149
eval at boot.jl:360 [inlined]
include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String) at loading.jl:1094