Rename Columns

In this lesson, we learn how to rename the column names for the DataFrame object.

A meaningful name can save you time and reduce bugs. When a dataset is small with only the same columns, we don’t care about the column names. However, in the real world, some datasets have dozens or even hundreds of columns. In order to make the work easier, it’s necessary to change the default column names to custom names that are easy to use and remember.

Get hands-on with 1200+ tech skills courses.