Rename a row in DataFrames?

Is it possible to rename a row in DataFrames.jl?
Currently it looks like rows are numbered by default 1:n.
The function rename!() only changes column names, not row names.

My hack is to add a column w/ my desired row names:
insertcols!(se, 1, :coef => ["β0","β1","β2","β3"])

I can’t find the relevant discussion on whether this was a deliberate design decision…

2 Likes

Rows are un-labeled/un-named in DataFrames.jl - that’s a deliberate design decision.

Not speaking for the DataFrames maintainers, but I think the idea of “indexed” columns, that you could treat like a row label is not out of the question, but may not be added before 1.0. A few relevant issues

3 Likes