You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled on an issue where colmetadata are not translated with the column tafter inserting a new column before.
I have not found this issue mentionned amond recent issues with the metadata keyword.
Here is an example to reproduce it:
julia>versioninfo()
Julia Version 1.8.2
Commit 36034abf26 (2022-09-2915:21 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU:8×Intel(R) Core(TM) i5-10400H CPU @ 2.60GHz
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
Threads:8 on 8 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =8
(myproject) pkg> status DataFrames
Project myproject v0.1.0
Status `C:\...\code_julia\myproject\Project.toml`
[a93c6f00] DataFrames v1.4.2
julia> df =DataFrame(B=[1, 2], C=[3.0, 4.0])
2×2 DataFrame
Row │ B C
│ Int64 Float64
─────┼────────────────
1 │ 13.02 │ 24.0
julia>colmetadata!(df, :C, "label", "last column"; style=:note)
2×2 DataFrame
Row │ B C
│ Int64 Float64
─────┼────────────────
1 │ 13.02 │ 24.0
julia>colmetadatakeys(df) |> collect
1-element Vector{Pair{Symbol, Base.KeySet{String, Dict{String, Tuple{Any, Any}}}}}::C=> ["label"]
julia>insertcols!(df, 1, :A=> ["a", "b"])
2×3 DataFrame
Row │ A B C
│ String Int64 Float64
─────┼────────────────────────
1 │ a 13.02 │ b 24.0
julia>colmetadatakeys(df) |> collect
1-element Vector{Pair{Symbol, Base.KeySet{String, Dict{String, Tuple{Any, Any}}}}}::B=> ["label"]
julia>
The text was updated successfully, but these errors were encountered:
Hello,
I stumbled on an issue where
colmetadata
are not translated with the column tafter inserting a new column before.I have not found this issue mentionned amond recent issues with the metadata keyword.
Here is an example to reproduce it:
The text was updated successfully, but these errors were encountered: