Julia DataFrames.jl seems like a really great way to manipulate data in a tabular form. https://juliadata.github.io/DataFrames.jl/stable/man/getting_started.html I was just wondering, is there a simple way to create a data frame with more than one titles? Or put some signature in the corner where the phrase “row” is sitting (see the following)?
julia> using DataFrames
julia> df = DataFrame(A = 1:4, B = ["M", "F", "F", "M"])
4×2 DataFrame
│ Row │ A │ B │
│ │ Int64 │ String │
├─────┼───────┼────────┤
│ 1 │ 1 │ M │
│ 2 │ 2 │ F │
│ 3 │ 3 │ F │
│ 4 │ 4 │ M │
EDIT: yes. I should have made this clear. The following might be a good context.
Suppose we have a process which starts at a certain time t. Then, this time t is a parameter / signature which only belongs to this process. And in the columns of this data frame, we have other parameters / characteristics. If it’s a table, then the starting time t can be manually put in the title part. For data frames, maybe it can not be done? Any comments are greatly appreciated.
It is not clear what you are referring to — DataFrames have no “title”.
The Row in the table comes from the Base.show method, and is hardcoded. Making it customizable per dataframe would need a minor redesign of the library.
It is unclear what you need this for — perhaps you could provide some context.