# Rename a row in DataFrames?

**URL:** https://discourse.julialang.org/t/rename-a-row-in-dataframes/58261
**Category:** Data
**Tags:** dataframes
**Created:** [March 30, 2021, 7:51pm UTC](https://discourse.julialang.org/t/rename-a-row-in-dataframes/58261 "2021-03-30T19:51:39Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Albert\_Zevelev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albert_zevelev/32/11844_2.png) [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)
#### Post date: [March 30, 2021, 7:51pm UTC](https://discourse.julialang.org/t/rename-a-row-in-dataframes/58261/1 "2021-03-30T19:51:39Z")

</div>

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"])`

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/3/73af9f2f236fd27df7266fc6bb5728533263c509.png)

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

---

_[View the full topic](https://discourse.julialang.org/t/rename-a-row-in-dataframes/58261)._
