OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Rename unnamed column pandas dataframe

  • Thread starter Thread starter user2491254
  • Start date Start date
U

user2491254

Guest
My csv file has no column name for the first column, and I want to rename it. Usually, I would do data.rename(columns={'oldname':'newname'}, inplace=True), but there is no name in the csv file, just ''.
<p>My csv file has no column name for the first column, and I want to rename it. Usually, I would do <code>data.rename(columns={'oldname':'newname'}, inplace=True)</code>, but there is no name in the csv file, just ''. </p>
 

Latest posts

S
Replies
0
Views
1
Sergey Bakaev Rettley
S
Top