Jan-05-2021, 05:37 AM
Here is my data frame after reading the csv file and splitting it into columns.
![[Image: qZQYP.png]](https://i.stack.imgur.com/qZQYP.png)
I would like to name my columns based on the content in the 6th row index, then get rid of the first 6 indices, and reset the index from zero. This means that I wish my data to look like this:
![[Image: cuwtT.png]](https://i.stack.imgur.com/cuwtT.png)
I know how to remove the first 6 rows and rest the indices. But I do not know how to rename the column name based on row 6 at the first step. Can you please help me?
Thanks
![[Image: qZQYP.png]](https://i.stack.imgur.com/qZQYP.png)
I would like to name my columns based on the content in the 6th row index, then get rid of the first 6 indices, and reset the index from zero. This means that I wish my data to look like this:
![[Image: cuwtT.png]](https://i.stack.imgur.com/cuwtT.png)
I know how to remove the first 6 rows and rest the indices. But I do not know how to rename the column name based on row 6 at the first step. Can you please help me?
Thanks